diff --git a/core/src/components/accordion/test/a11y/accordion.e2e.ts b/core/src/components/accordion/test/a11y/accordion.e2e.ts new file mode 100644 index 00000000000..3fdcdeb447c --- /dev/null +++ b/core/src/components/accordion/test/a11y/accordion.e2e.ts @@ -0,0 +1,42 @@ +import { expect } from '@playwright/test'; +import { test } from '@utils/test/playwright'; + +test.describe('accordion: a11y', () => { + test('accordions should be keyboard navigable', async ({ page, browserName }) => { + // TODO(FW-1764): remove skip once issue is resolved + test.skip(browserName === 'firefox', 'https://github.com/ionic-team/ionic-framework/issues/25529'); + + await page.goto(`/src/components/accordion/test/a11y`); + const tabKey = browserName === 'webkit' ? 'Alt+Tab' : 'Tab'; + + const personalInfoHeader = page.locator('ion-accordion:first-child > ion-item'); + const billingAddressHeader = page.locator('ion-accordion:nth-child(2) > ion-item'); + const shippingAddressHeader = page.locator('ion-accordion:nth-child(3) > ion-item'); + const addressInput = page.locator('#address1 input'); + + await page.keyboard.press(tabKey); + await expect(personalInfoHeader).toBeFocused(); + + await page.keyboard.press('ArrowDown'); + await expect(billingAddressHeader).toBeFocused(); + + await page.keyboard.press('ArrowDown'); + await expect(shippingAddressHeader).toBeFocused(); + + await page.keyboard.press('ArrowDown'); + await expect(personalInfoHeader).toBeFocused(); + + await page.keyboard.press('ArrowUp'); + await expect(shippingAddressHeader).toBeFocused(); + + // open Shipping Address accordion and move focus to the input inside it + await page.keyboard.press('Enter'); + await page.waitForChanges(); + await page.keyboard.press(tabKey); + await expect(addressInput).toBeFocused(); + + // ensure keyboard interaction doesn't move focus from body + await page.keyboard.press('ArrowDown'); + await expect(addressInput).toBeFocused(); + }); +}); diff --git a/core/src/components/accordion/test/a11y/e2e.ts b/core/src/components/accordion/test/a11y/e2e.ts deleted file mode 100644 index f25141b93a5..00000000000 --- a/core/src/components/accordion/test/a11y/e2e.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { newE2EPage } from '@stencil/core/testing'; - -const getActiveElementText = async (page) => { - const activeElement = await page.evaluateHandle(() => document.activeElement); - return page.evaluate((el) => el?.innerText, activeElement); -}; - -const getActiveInputID = async (page) => { - const activeElement = await page.evaluateHandle(() => document.activeElement); - return page.evaluate((el) => el?.closest('ion-input')?.id, activeElement); -}; - -test('accordion: a11y', async () => { - const page = await newE2EPage({ - url: '/src/components/accordion/test/a11y?ionic:_testing=true', - }); - - const compare = await page.compareScreenshot(); - expect(compare).toMatchScreenshot(); -}); - -test('accordion:rtl: a11y', async () => { - const page = await newE2EPage({ - url: '/src/components/accordion/test/a11y?ionic:_testing=true&rtl=true', - }); - - const compare = await page.compareScreenshot(); - expect(compare).toMatchScreenshot(); -}); - -test('accordion: keyboard navigation', async () => { - const page = await newE2EPage({ - url: '/src/components/accordion/test/a11y?ionic:_testing=true', - }); - - await page.keyboard.press('Tab'); - expect(await getActiveElementText(page)).toEqual('Personal Information'); - - await page.keyboard.press('ArrowDown'); - expect(await getActiveElementText(page)).toEqual('Billing Address'); - - await page.keyboard.press('ArrowDown'); - expect(await getActiveElementText(page)).toEqual('Shipping Address'); - - await page.keyboard.press('ArrowDown'); - expect(await getActiveElementText(page)).toEqual('Personal Information'); - - await page.keyboard.press('ArrowUp'); - expect(await getActiveElementText(page)).toEqual('Shipping Address'); - - // open Shipping Address accordion and move focus to the input inside it - await page.keyboard.press('Enter'); - await page.waitForChanges(); - await page.keyboard.press('Tab'); - - const activeID = await getActiveInputID(page); - expect(activeID).toEqual('address1'); - - // ensure keyboard interaction doesn't move focus from body - await page.keyboard.press('ArrowDown'); - const activeIDAgain = await getActiveInputID(page); - expect(activeIDAgain).toEqual('address1'); -}); diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts b/core/src/components/accordion/test/basic/accordion.e2e.ts new file mode 100644 index 00000000000..3263fdde5cf --- /dev/null +++ b/core/src/components/accordion/test/basic/accordion.e2e.ts @@ -0,0 +1,12 @@ +import { expect } from '@playwright/test'; +import { test } from '@utils/test/playwright'; + +test.describe('accordion: basic', () => { + test('should not have visual regressions', async ({ page }) => { + await page.goto(`/src/components/accordion/test/basic`); + + await page.setIonViewport(); + + expect(await page.screenshot()).toMatchSnapshot(`accordion-basic-${page.getSnapshotSettings()}.png`); + }); +}); diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..9ae8357d19d Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..ed66c275b7c Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..844d76c106a Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..8dd6f51a17e Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..13c6cdb9d52 Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..16bc9ed8889 Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-ios-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..93f46388395 Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..afb42d65b82 Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..0e658f359ca Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..70f8202722b Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..3d19a6782d6 Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..5ce5433b71a Binary files /dev/null and b/core/src/components/accordion/test/basic/accordion.e2e.ts-snapshots/accordion-basic-md-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/basic/e2e.ts b/core/src/components/accordion/test/basic/e2e.ts deleted file mode 100644 index 99771845ae5..00000000000 --- a/core/src/components/accordion/test/basic/e2e.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { newE2EPage } from '@stencil/core/testing'; - -test('accordion: basic', async () => { - const page = await newE2EPage({ - url: '/src/components/accordion/test/basic?ionic:_testing=true', - }); - - const compare = await page.compareScreenshot(); - expect(compare).toMatchScreenshot(); -}); diff --git a/core/src/components/accordion/test/basic/index.html b/core/src/components/accordion/test/basic/index.html index 9f26b6bf0a5..0307c164aa3 100644 --- a/core/src/components/accordion/test/basic/index.html +++ b/core/src/components/accordion/test/basic/index.html @@ -42,12 +42,12 @@
-

Inset, Color - iOS

- +

Inset, Color

+ - Attractions + Attractions @@ -118,12 +118,12 @@

Inset, Color - iOS

-

Inset - iOS

- +

Inset

+ - Attractions + Attractions @@ -194,12 +194,12 @@

Inset - iOS

-

Inset, Color - MD

- +

Compact, Color

+ - Attractions + Attractions @@ -270,394 +270,12 @@

Inset, Color - MD

-

Inset - MD

- +

Compact

+ - Attractions - - - - Movie Theaters - - - Amusement Parks - - - Mini Golf - - - - - - - Dining - - - - Breakfast & Brunch - - - New American - - - Sushi Bars - - - - - - - Games - - - - - Xbox - - - Playstation - - - Switch - - - - - - - Exercise - - - - - Jog - - - Swim - - - Nap - - - - -
-
-
-
-

Compact, Color - iOS

- - - - - Attractions - - - - Movie Theaters - - - Amusement Parks - - - Mini Golf - - - - - - - Dining - - - - Breakfast & Brunch - - - New American - - - Sushi Bars - - - - - - - Games - - - - - Xbox - - - Playstation - - - Switch - - - - - - - Exercise - - - - - Jog - - - Swim - - - Nap - - - - -
- -
-

Compact - iOS

- - - - - Attractions - - - - Movie Theaters - - - Amusement Parks - - - Mini Golf - - - - - - - Dining - - - - Breakfast & Brunch - - - New American - - - Sushi Bars - - - - - - - Games - - - - - Xbox - - - Playstation - - - Switch - - - - - - - Exercise - - - - - Jog - - - Swim - - - Nap - - - - -
- -
-

Compact, Color - MD

- - - - - Attractions - - - - Movie Theaters - - - Amusement Parks - - - Mini Golf - - - - - - - Dining - - - - Breakfast & Brunch - - - New American - - - Sushi Bars - - - - - - - Games - - - - - Xbox - - - Playstation - - - Switch - - - - - - - Exercise - - - - - Jog - - - Swim - - - Nap - - - - -
- -
-

Compact - MD

- - - - - Attractions - - - - Movie Theaters - - - Amusement Parks - - - Mini Golf - - - - - - - Dining - - - - Breakfast & Brunch - - - New American - - - Sushi Bars - - - - - - - Games - - - - - Xbox - - - Playstation - - - Switch - - - - - - - Exercise - - - - - Jog - - - Swim - - - Nap - - - - -
-
-
-
-

Multiple

- - - - - Attractions + Attractions @@ -729,10 +347,5 @@

Multiple

- - diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts b/core/src/components/accordion/test/multiple/accordion.e2e.ts new file mode 100644 index 00000000000..a22963585b5 --- /dev/null +++ b/core/src/components/accordion/test/multiple/accordion.e2e.ts @@ -0,0 +1,30 @@ +import { expect } from '@playwright/test'; +import { test } from '@utils/test/playwright'; + +test.describe('accordion: multiple', () => { + test('should update value and not have visual regressions', async ({ page }) => { + await page.goto(`/src/components/accordion/test/multiple`); + const accordionGroup = page.locator('ion-accordion-group'); + const diningHeader = page.locator('ion-accordion[value="dining"] ion-item[slot="header"]'); + const attractionsHeader = page.locator('ion-accordion[value="attractions"] ion-item[slot="header"]'); + + await expect(accordionGroup).toHaveJSProperty('value', 'attractions'); + + expect(await accordionGroup.screenshot()).toMatchSnapshot(`accordion-one-open-${page.getSnapshotSettings()}.png`); + + await diningHeader.click(); + await page.waitForChanges(); + + await expect(accordionGroup).toHaveJSProperty('value', ['attractions', 'dining']); + + expect(await accordionGroup.screenshot()).toMatchSnapshot(`accordion-two-open-${page.getSnapshotSettings()}.png`); + + await diningHeader.click(); + await attractionsHeader.click(); + await page.waitForChanges(); + + await expect(accordionGroup).toHaveJSProperty('value', []); + + expect(await accordionGroup.screenshot()).toMatchSnapshot(`accordion-zero-open-${page.getSnapshotSettings()}.png`); + }); +}); diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..3bdc0bb350f Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..b976f4ebb5c Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..c78ed020654 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..12355ea4556 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..2daf0475c04 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..6afc08dbb67 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-ios-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..654a14b1a1d Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..ccf14822ea2 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..94a8595fd6d Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..b247e62b59e Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..e7d34a56079 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..1e40ae14603 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-one-open-md-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..935485f0543 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..4440f051107 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..b67d1e2e8be Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..5efc4675afa Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..4d53bb9087c Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..d16b3682883 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-ios-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..88644fd4713 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..941e91080f8 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..0ea94f20d41 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..e9b2d55fbd9 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..ad0267a1f4a Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..ed285c5dad0 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-two-open-md-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..80c46f3b99e Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..06b0b7fad85 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..2bcaed70c7e Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..ca3cb744b89 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..379d618ae7d Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..187bcd1521e Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-ios-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..d4e59105e0c Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..22bdc8219d3 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..7e9e65c1321 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..bef0ea45337 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..5b7d1c2c000 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..143342ccab5 Binary files /dev/null and b/core/src/components/accordion/test/multiple/accordion.e2e.ts-snapshots/accordion-zero-open-md-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/multiple/e2e.ts b/core/src/components/accordion/test/multiple/e2e.ts deleted file mode 100644 index 7feaa318a6a..00000000000 --- a/core/src/components/accordion/test/multiple/e2e.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { newE2EPage } from '@stencil/core/testing'; - -test('accordion: multiple - open', async () => { - const page = await newE2EPage({ - url: '/src/components/accordion/test/multiple?ionic:_testing=true', - }); - - const screenshotCompares = []; - - screenshotCompares.push(await page.compareScreenshot()); - - const accordionGroup = await page.find('ion-accordion-group'); - const diningAccordion = await page.find('ion-accordion[value="dining"] ion-item[slot="header"]'); - - const groupValue = await accordionGroup.getProperty('value'); - expect(groupValue).toEqual('attractions'); - - await diningAccordion.click(); - await page.waitForChanges(); - - const groupValueAgain = await accordionGroup.getProperty('value'); - expect(groupValueAgain).toEqual(['attractions', 'dining']); - - screenshotCompares.push(await page.compareScreenshot()); - - for (const screenshotCompare of screenshotCompares) { - expect(screenshotCompare).toMatchScreenshot(); - } -}); - -test('accordion: multiple - close', async () => { - const page = await newE2EPage({ - url: '/src/components/accordion/test/multiple?ionic:_testing=true', - }); - - const screenshotCompares = []; - - screenshotCompares.push(await page.compareScreenshot()); - - const accordionGroup = await page.find('ion-accordion-group'); - const attractionsAccordion = await page.find('ion-accordion[value="attractions"] ion-item[slot="header"]'); - - await attractionsAccordion.click(); - await page.waitForChanges(); - - const groupValue = await accordionGroup.getProperty('value'); - expect(groupValue).toEqual([]); - - screenshotCompares.push(await page.compareScreenshot()); - - for (const screenshotCompare of screenshotCompares) { - expect(screenshotCompare).toMatchScreenshot(); - } -}); diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts b/core/src/components/accordion/test/nested/accordion.e2e.ts new file mode 100644 index 00000000000..d6391dc8c87 --- /dev/null +++ b/core/src/components/accordion/test/nested/accordion.e2e.ts @@ -0,0 +1,12 @@ +import { expect } from '@playwright/test'; +import { test } from '@utils/test/playwright'; + +test.describe('accordion: nested', () => { + test('should not have visual regressions', async ({ page }) => { + await page.goto(`/src/components/accordion/test/nested`); + + await page.setIonViewport(); + + expect(await page.screenshot()).toMatchSnapshot(`accordion-nested-${page.getSnapshotSettings()}.png`); + }); +}); diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..bbf195378e6 Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..45e350c44a2 Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..ed6d3515153 Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..3409b622058 Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..5f83d73073a Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..732973d3b18 Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-ios-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..95f00378bc4 Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..7ed0b253ee7 Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..edd70efe0d4 Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..7c6ed8a9ced Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..5428912a46a Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..52eee134120 Binary files /dev/null and b/core/src/components/accordion/test/nested/accordion.e2e.ts-snapshots/accordion-nested-md-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/nested/e2e.ts b/core/src/components/accordion/test/nested/e2e.ts deleted file mode 100644 index 580ae1dac62..00000000000 --- a/core/src/components/accordion/test/nested/e2e.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { newE2EPage } from '@stencil/core/testing'; - -test('nested: basic', async () => { - const page = await newE2EPage({ - url: '/src/components/accordion/test/nested?ionic:_testing=true', - }); - - const compare = await page.compareScreenshot(); - expect(compare).toMatchScreenshot(); -}); diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts b/core/src/components/accordion/test/standalone/accordion.e2e.ts new file mode 100644 index 00000000000..46470182e8f --- /dev/null +++ b/core/src/components/accordion/test/standalone/accordion.e2e.ts @@ -0,0 +1,21 @@ +import AxeBuilder from '@axe-core/playwright'; +import { expect } from '@playwright/test'; +import { test } from '@utils/test/playwright'; + +test.describe('accordion: standalone', () => { + test('should not have accessibility violations', async ({ page }) => { + await page.goto(`/src/components/accordion/test/standalone`); + + const results = await new AxeBuilder({ page }).analyze(); + + expect(results.violations).toEqual([]); + }); + + test('should not have visual regressions', async ({ page }) => { + await page.goto(`/src/components/accordion/test/standalone`); + + expect(await page.screenshot({ fullPage: true })).toMatchSnapshot( + `accordion-standalone-${page.getSnapshotSettings()}.png` + ); + }); +}); diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..cc38afd43cb Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..a07df8cec81 Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..497cfb1a562 Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..2f400a81edb Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..ea1f539bae7 Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..91980dc95c4 Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-ios-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-ltr-Mobile-Chrome-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..3703feb02c6 Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-ltr-Mobile-Firefox-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..1975f8b9876 Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-ltr-Mobile-Safari-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 00000000000..d733074c89b Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-rtl-Mobile-Chrome-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-rtl-Mobile-Chrome-linux.png new file mode 100644 index 00000000000..e812d62b474 Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-rtl-Mobile-Chrome-linux.png differ diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-rtl-Mobile-Firefox-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-rtl-Mobile-Firefox-linux.png new file mode 100644 index 00000000000..5798de3e0f5 Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-rtl-Mobile-Firefox-linux.png differ diff --git a/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-rtl-Mobile-Safari-linux.png b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-rtl-Mobile-Safari-linux.png new file mode 100644 index 00000000000..2b21eb8dadb Binary files /dev/null and b/core/src/components/accordion/test/standalone/accordion.e2e.ts-snapshots/accordion-standalone-md-rtl-Mobile-Safari-linux.png differ diff --git a/core/src/components/accordion/test/standalone/e2e.ts b/core/src/components/accordion/test/standalone/e2e.ts deleted file mode 100644 index 57bc7b82d22..00000000000 --- a/core/src/components/accordion/test/standalone/e2e.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { AxePuppeteer } from '@axe-core/puppeteer'; -import { newE2EPage } from '@stencil/core/testing'; - -test('accordion: axe', async () => { - const page = await newE2EPage({ - url: '/src/components/accordion/test/standalone?ionic:_testing=true', - }); - - const results = await new AxePuppeteer(page).analyze(); - expect(results.violations.length).toEqual(0); -}); - -test('accordion: standalone', async () => { - const page = await newE2EPage({ - url: '/src/components/accordion/test/standalone?ionic:_testing=true', - }); - - const compare = await page.compareScreenshot(); - expect(compare).toMatchScreenshot(); -});