diff --git a/src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-detail-right-false-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-detail-right-false-over-inverse-false-1-snap.png similarity index 100% rename from src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-detail-right-false-1-snap.png rename to src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-detail-right-false-over-inverse-false-1-snap.png diff --git a/src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-detail-right-true-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-detail-right-true-over-inverse-false-1-snap.png similarity index 100% rename from src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-detail-right-true-1-snap.png rename to src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-detail-right-true-over-inverse-false-1-snap.png diff --git a/src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-detail-right-true-over-inverse-true-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-detail-right-true-over-inverse-true-1-snap.png new file mode 100644 index 000000000..c175fa6e7 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-detail-right-true-over-inverse-true-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-right-false-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-right-false-over-inverse-false-1-snap.png similarity index 100% rename from src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-right-false-1-snap.png rename to src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-right-false-over-inverse-false-1-snap.png diff --git a/src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-right-true-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-right-true-over-inverse-false-1-snap.png similarity index 100% rename from src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-right-true-1-snap.png rename to src/__screenshot_tests__/__image_snapshots__/accordion-screenshot-test-tsx-accordion-detail-right-true-over-inverse-false-1-snap.png diff --git a/src/__screenshot_tests__/accordion-screenshot-test.tsx b/src/__screenshot_tests__/accordion-screenshot-test.tsx index e5de68c07..f2b53b4fb 100644 --- a/src/__screenshot_tests__/accordion-screenshot-test.tsx +++ b/src/__screenshot_tests__/accordion-screenshot-test.tsx @@ -67,31 +67,36 @@ test.each` ); test.each` - detail | right - ${''} | ${false} - ${''} | ${true} - ${'Detail'} | ${false} - ${'Detail'} | ${true} -`('Accordion. detail($detail) right($right)', async ({detail, right}) => { - await openStoryPage({ - id: 'components-accordions--accordion-story', - device: 'MOBILE_IOS', - args: { - detail, - right, - }, - }); + detail | right | overInverse + ${''} | ${false} | ${false} + ${''} | ${true} | ${false} + ${'Detail'} | ${false} | ${false} + ${'Detail'} | ${true} | ${false} + ${'Detail'} | ${true} | ${true} +`( + 'Accordion. detail($detail) right($right) overInverse($overInverse)', + async ({detail, right, overInverse}) => { + await openStoryPage({ + id: 'components-accordions--accordion-story', + device: 'MOBILE_IOS', + args: { + detail, + right, + overInverse, + }, + }); - const accordion = await screen.findByTestId('accordion'); + const accordion = await screen.findByTestId('accordion'); - await (await screen.findByTestId('accordion-item-1')).click(); - await (await screen.findByTestId('accordion-item-1')).click(); - await (await screen.findByTestId('accordion-item-2')).click(); - await (await screen.findByTestId('accordion-item-4')).click(); - await (await screen.findByTestId('accordion-item-6')).click(); + await (await screen.findByTestId('accordion-item-1')).click(); + await (await screen.findByTestId('accordion-item-1')).click(); + await (await screen.findByTestId('accordion-item-2')).click(); + await (await screen.findByTestId('accordion-item-4')).click(); + await (await screen.findByTestId('accordion-item-6')).click(); - expect(await accordion.screenshot()).toMatchImageSnapshot(); -}); + expect(await accordion.screenshot()).toMatchImageSnapshot(); + } +); test.each` detail | right