diff --git a/core/src/components/content/test/basic/content.e2e.ts b/core/src/components/content/test/basic/content.e2e.ts new file mode 100644 index 0000000000..d44f49c97b --- /dev/null +++ b/core/src/components/content/test/basic/content.e2e.ts @@ -0,0 +1,15 @@ +import { expect } from '@playwright/test'; +import { test } from '@utils/test/playwright'; + +test.describe('content: basic', () => { + test('should not have visual regressions', async ({ page, skip }) => { + skip.rtl(); + skip.mode('ios', 'ion-content does not have mode-specific styling'); + + await page.goto(`/src/components/content/test/basic`); + + await page.setIonViewport(); + + expect(await page.screenshot()).toMatchSnapshot(`content-diff-${page.getSnapshotSettings()}.png`); + }); +}); diff --git a/core/src/components/content/test/basic/content.e2e.ts-snapshots/content-diff-md-ltr-Mobile-Chrome-linux.png b/core/src/components/content/test/basic/content.e2e.ts-snapshots/content-diff-md-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..1a7140c7ff Binary files /dev/null and b/core/src/components/content/test/basic/content.e2e.ts-snapshots/content-diff-md-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/content/test/basic/content.e2e.ts-snapshots/content-diff-md-ltr-Mobile-Firefox-linux.png b/core/src/components/content/test/basic/content.e2e.ts-snapshots/content-diff-md-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..3de746b754 Binary files /dev/null and b/core/src/components/content/test/basic/content.e2e.ts-snapshots/content-diff-md-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/content/test/basic/content.e2e.ts-snapshots/content-diff-md-ltr-Mobile-Safari-linux.png b/core/src/components/content/test/basic/content.e2e.ts-snapshots/content-diff-md-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..2913fa3172 Binary files /dev/null and b/core/src/components/content/test/basic/content.e2e.ts-snapshots/content-diff-md-ltr-Mobile-Safari-linux.png differ diff --git a/core/src/components/content/test/basic/e2e.ts b/core/src/components/content/test/basic/e2e.ts deleted file mode 100644 index 3bbae8552d..0000000000 --- a/core/src/components/content/test/basic/e2e.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { newE2EPage } from '@stencil/core/testing'; - -test('content: basic', async () => { - const page = await newE2EPage({ - url: '/src/components/content/test/basic?ionic:_testing=true', - }); - - const compare = await page.compareScreenshot(); - expect(compare).toMatchScreenshot(); -}); diff --git a/core/src/components/content/test/basic/index.html b/core/src/components/content/test/basic/index.html index c9609bcf99..ecc9b1211b 100644 --- a/core/src/components/content/test/basic/index.html +++ b/core/src/components/content/test/basic/index.html @@ -29,7 +29,6 @@ - Toggle content.fullscreen

Toggle header Toggle footer @@ -45,11 +44,6 @@ - - - - -