diff --git a/public/images/category-pompe-chaleur.jpg b/public/images/category-pompe-chaleur.jpg deleted file mode 100644 index 3544a5209..000000000 Binary files a/public/images/category-pompe-chaleur.jpg and /dev/null differ diff --git a/public/images/epargnonsnosressources.png b/public/images/epargnonsnosressources.png new file mode 100644 index 000000000..41e80c745 Binary files /dev/null and b/public/images/epargnonsnosressources.png differ diff --git a/public/images/gagner-place.png b/public/images/gagner-place.png new file mode 100644 index 000000000..5c567cd84 Binary files /dev/null and b/public/images/gagner-place.png differ diff --git a/public/images/hiver.png b/public/images/hiver.png new file mode 100644 index 000000000..4f7e9720b Binary files /dev/null and b/public/images/hiver.png differ diff --git a/public/images/osez-changer-tri.png b/public/images/osez-changer-tri.png deleted file mode 100644 index 2ddbab555..000000000 Binary files a/public/images/osez-changer-tri.png and /dev/null differ diff --git a/public/images/sobriete.png b/public/images/sobriete.png new file mode 100644 index 000000000..b11e487f3 Binary files /dev/null and b/public/images/sobriete.png differ diff --git a/src/components/shareable/overScreens/Values/Category.tsx b/src/components/shareable/overScreens/Values/Category.tsx index c772be699..6d4b2cef7 100644 --- a/src/components/shareable/overScreens/Values/Category.tsx +++ b/src/components/shareable/overScreens/Values/Category.tsx @@ -44,33 +44,40 @@ export const overScreenCategoryValues: (category: Category) => Record - + + @@ -140,6 +147,13 @@ export const overScreenCategoryValues: (category: Category) => Record + Record + + ), }, @@ -208,6 +236,20 @@ export const overScreenCategoryValues: (category: Category) => Record + + Record + + + ), }, @@ -316,6 +379,13 @@ export const overScreenCategoryValues: (category: Category) => Record + Record + + + + ), + }, + } + } + if (category.slug === 'boisson') { + return { + ...values, + hypothesis: { + image: '/images/icn-next-actions.svg', + title: 'next-actions', + children: ( +
+ + +
+ ), + }, + } + } + if (category.slug === 'electromenager') { + return { + ...values, + hypothesis: { + image: '/images/icn-next-actions.svg', + title: 'next-actions', + children: ( +
+ + +
+ ), + }, + } + } + if (category.slug === 'habillement') { + return { + ...values, + hypothesis: { + image: '/images/icn-next-actions.svg', + title: 'next-actions', + children: ( +
+ + + +
+ ), + }, + } + } + if (category.slug === 'mobilier') { + return { + ...values, + hypothesis: { + image: '/images/icn-next-actions.svg', + title: 'next-actions', + children: ( +
+ + + +
+ ), + }, + } + } + if (category.slug === 'numerique') { + return { + ...values, + hypothesis: { + image: '/images/icn-next-actions.svg', + title: 'next-actions', + children: ( +
+ + + +
+ ), + }, + } + } return values } diff --git a/src/components/shareable/overScreens/Values/OsezChanger.tsx b/src/components/shareable/overScreens/Values/OsezChanger.tsx index 75516fcd3..d386ee16b 100644 --- a/src/components/shareable/overScreens/Values/OsezChanger.tsx +++ b/src/components/shareable/overScreens/Values/OsezChanger.tsx @@ -39,15 +39,15 @@ export const overScreenOsezChangerValues: () => Record = tracking='OsezChanger' /> { await expect(page.getByTestId('alimentation-category-boucherie')).not.toBeVisible() await expect(page.getByTestId('category-boeuf')).toHaveText('Boeuf28 kg CO₂e') await expect(page.getByRole('button', { name: 'Comprendre les données' })).toBeVisible() - await expect(page.getByRole('button', { name: 'Aller plus loin' })).toBeVisible() + await expect(page.getByRole('button', { name: 'Aller plus loin' }).nth(0)).toBeVisible() await expect(page.getByTestId('header-share-button')).toHaveCount(2) await expect(page.getByTestId('header-integrate-button')).toHaveCount(2) @@ -75,7 +75,7 @@ test('Alimentation simulateur params', async ({ page }) => { await expect(page.getByTestId('category-boeuf')).toHaveText('Boeuf28 kg CO₂e') await expect(page.getByTestId('category-porc')).toHaveText('Porc6.67 kg CO₂e') await expect(page.getByRole('button', { name: 'Comprendre les données' })).toBeVisible() - await expect(page.getByRole('button', { name: 'Aller plus loin' })).toBeVisible() + await expect(page.getByRole('button', { name: 'Aller plus loin' }).nth(0)).toBeVisible() await expect(page.getByTestId('header-share-button')).toHaveCount(2) await expect(page.getByTestId('header-integrate-button')).toHaveCount(2) @@ -86,7 +86,7 @@ test('Alimentation simulateur params', async ({ page }) => { await expect(page.getByTestId('category-boeuf')).toHaveText('Boeuf28 kg CO₂e') await expect(page.getByTestId('category-porc')).toHaveText('Porc6.67 kg CO₂e') await expect(page.getByRole('button', { name: 'Comprendre les données' })).not.toBeVisible() - await expect(page.getByRole('button', { name: 'Aller plus loin' })).not.toBeVisible() + await expect(page.getByRole('button', { name: 'Aller plus loin' }).nth(0)).not.toBeVisible() await expect(page.getByTestId('header-share-button')).not.toBeVisible() await expect(page.getByTestId('header-integrate-button')).not.toBeVisible() })