From aab63c25a582bd6fd87baec8a174b7f51a2b63a0 Mon Sep 17 00:00:00 2001 From: Amanda Johnston <90629384+amandaejohnston@users.noreply.github.com> Date: Tue, 6 Dec 2022 13:03:39 -0600 Subject: [PATCH] test(toolbar): migrate to Playwright (#26419) --- core/src/components/toolbar/test/basic/e2e.ts | 19 - .../components/toolbar/test/basic/index.html | 87 ++-- .../toolbar/test/basic/toolbar.e2e.ts | 12 + ...lbar-basic-ios-ltr-Mobile-Chrome-linux.png | Bin 0 -> 39201 bytes ...bar-basic-ios-ltr-Mobile-Firefox-linux.png | Bin 0 -> 14519 bytes ...lbar-basic-ios-ltr-Mobile-Safari-linux.png | Bin 0 -> 36342 bytes ...lbar-basic-ios-rtl-Mobile-Chrome-linux.png | Bin 0 -> 42374 bytes ...bar-basic-ios-rtl-Mobile-Firefox-linux.png | Bin 0 -> 14962 bytes ...lbar-basic-ios-rtl-Mobile-Safari-linux.png | Bin 0 -> 36309 bytes ...olbar-basic-md-ltr-Mobile-Chrome-linux.png | Bin 0 -> 42378 bytes ...lbar-basic-md-ltr-Mobile-Firefox-linux.png | Bin 0 -> 14886 bytes ...olbar-basic-md-ltr-Mobile-Safari-linux.png | Bin 0 -> 39822 bytes ...olbar-basic-md-rtl-Mobile-Chrome-linux.png | Bin 0 -> 41095 bytes ...lbar-basic-md-rtl-Mobile-Firefox-linux.png | Bin 0 -> 15361 bytes ...olbar-basic-md-rtl-Mobile-Safari-linux.png | Bin 0 -> 39814 bytes .../toolbar/test/collapse/index.html | 131 ------ .../src/components/toolbar/test/colors/e2e.ts | 10 - .../components/toolbar/test/colors/index.html | 399 +++++++----------- .../toolbar/test/colors/toolbar.e2e.ts | 12 + ...bar-colors-ios-ltr-Mobile-Chrome-linux.png | Bin 0 -> 123414 bytes ...ar-colors-ios-ltr-Mobile-Firefox-linux.png | Bin 0 -> 44612 bytes ...bar-colors-ios-ltr-Mobile-Safari-linux.png | Bin 0 -> 124587 bytes ...bar-colors-ios-rtl-Mobile-Chrome-linux.png | Bin 0 -> 122801 bytes ...ar-colors-ios-rtl-Mobile-Firefox-linux.png | Bin 0 -> 44379 bytes ...bar-colors-ios-rtl-Mobile-Safari-linux.png | Bin 0 -> 124491 bytes ...lbar-colors-md-ltr-Mobile-Chrome-linux.png | Bin 0 -> 112347 bytes ...bar-colors-md-ltr-Mobile-Firefox-linux.png | Bin 0 -> 44143 bytes ...lbar-colors-md-ltr-Mobile-Safari-linux.png | Bin 0 -> 111895 bytes ...lbar-colors-md-rtl-Mobile-Chrome-linux.png | Bin 0 -> 111998 bytes ...bar-colors-md-rtl-Mobile-Firefox-linux.png | Bin 0 -> 44450 bytes ...lbar-colors-md-rtl-Mobile-Safari-linux.png | Bin 0 -> 111827 bytes .../components/toolbar/test/components/e2e.ts | 10 - .../toolbar/test/components/index.html | 118 ------ .../src/components/toolbar/test/custom/e2e.ts | 19 - .../components/toolbar/test/custom/index.html | 297 ------------- core/src/components/toolbar/test/modes/e2e.ts | 19 - .../components/toolbar/test/modes/index.html | 84 ---- .../components/toolbar/test/scenarios/e2e.ts | 19 - .../toolbar/test/scenarios/index.html | 195 --------- core/src/components/toolbar/test/spec/e2e.ts | 10 - .../components/toolbar/test/spec/index.html | 291 ------------- core/src/components/toolbar/test/title/e2e.ts | 19 - .../components/toolbar/test/title/index.html | 185 -------- .../toolbar/test/translucent/index.html | 152 ------- 44 files changed, 200 insertions(+), 1888 deletions(-) delete mode 100644 core/src/components/toolbar/test/basic/e2e.ts create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-ios-ltr-Mobile-Chrome-linux.png create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-ios-ltr-Mobile-Firefox-linux.png create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-ios-ltr-Mobile-Safari-linux.png create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-ios-rtl-Mobile-Chrome-linux.png create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-ios-rtl-Mobile-Firefox-linux.png create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-ios-rtl-Mobile-Safari-linux.png create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-md-ltr-Mobile-Chrome-linux.png create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-md-ltr-Mobile-Firefox-linux.png create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-md-ltr-Mobile-Safari-linux.png create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-md-rtl-Mobile-Chrome-linux.png create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-md-rtl-Mobile-Firefox-linux.png create mode 100644 core/src/components/toolbar/test/basic/toolbar.e2e.ts-snapshots/toolbar-basic-md-rtl-Mobile-Safari-linux.png delete mode 100644 core/src/components/toolbar/test/collapse/index.html delete mode 100644 core/src/components/toolbar/test/colors/e2e.ts create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-ios-ltr-Mobile-Chrome-linux.png create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-ios-ltr-Mobile-Firefox-linux.png create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-ios-ltr-Mobile-Safari-linux.png create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-ios-rtl-Mobile-Chrome-linux.png create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-ios-rtl-Mobile-Firefox-linux.png create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-ios-rtl-Mobile-Safari-linux.png create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-md-ltr-Mobile-Chrome-linux.png create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-md-ltr-Mobile-Firefox-linux.png create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-md-ltr-Mobile-Safari-linux.png create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-md-rtl-Mobile-Chrome-linux.png create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-md-rtl-Mobile-Firefox-linux.png create mode 100644 core/src/components/toolbar/test/colors/toolbar.e2e.ts-snapshots/toolbar-colors-md-rtl-Mobile-Safari-linux.png delete mode 100644 core/src/components/toolbar/test/components/e2e.ts delete mode 100644 core/src/components/toolbar/test/components/index.html delete mode 100644 core/src/components/toolbar/test/custom/e2e.ts delete mode 100644 core/src/components/toolbar/test/custom/index.html delete mode 100644 core/src/components/toolbar/test/modes/e2e.ts delete mode 100644 core/src/components/toolbar/test/modes/index.html delete mode 100644 core/src/components/toolbar/test/scenarios/e2e.ts delete mode 100644 core/src/components/toolbar/test/scenarios/index.html delete mode 100644 core/src/components/toolbar/test/spec/e2e.ts delete mode 100644 core/src/components/toolbar/test/spec/index.html delete mode 100644 core/src/components/toolbar/test/title/e2e.ts delete mode 100644 core/src/components/toolbar/test/title/index.html delete mode 100644 core/src/components/toolbar/test/translucent/index.html diff --git a/core/src/components/toolbar/test/basic/e2e.ts b/core/src/components/toolbar/test/basic/e2e.ts deleted file mode 100644 index d7d49874a1..0000000000 --- a/core/src/components/toolbar/test/basic/e2e.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { newE2EPage } from '@stencil/core/testing'; - -test('toolbar: basic', async () => { - const page = await newE2EPage({ - url: '/src/components/toolbar/test/basic?ionic:_testing=true', - }); - - const compare = await page.compareScreenshot(); - expect(compare).toMatchScreenshot(); -}); - -test('toolbar:rtl: basic', async () => { - const page = await newE2EPage({ - url: '/src/components/toolbar/test/basic?ionic:_testing=true&rtl=true', - }); - - const compare = await page.compareScreenshot(); - expect(compare).toMatchScreenshot(); -}); diff --git a/core/src/components/toolbar/test/basic/index.html b/core/src/components/toolbar/test/basic/index.html index 67dc43685b..b49d0155ad 100644 --- a/core/src/components/toolbar/test/basic/index.html +++ b/core/src/components/toolbar/test/basic/index.html @@ -17,11 +17,11 @@
Paragraph in content.
-Another paragraph in content.
-Paragraph in content.
-Another paragraph in content.
-Paragraph in content.
-Another paragraph in content.
-