From 37aa7e9bdbb0dfa38102a59b8678e11ce8db21b7 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 26 Apr 2023 16:01:28 -0400 Subject: [PATCH] test(alert): migrate to generator (#27247) Issue number: N/A --------- This PR migrates the alert tests to use the generator infrastructure. In https://github.com/ionic-team/ionic-framework/pull/27247/commits/91ba3a1290e4ff42cd106d27209d6ea20afb8fd3 I migrated the basic test to use [Playwright Fixtures](https://playwright.dev/docs/test-fixtures#creating-a-fixture) instead since it is a) a best practice and b) easier to add the generator support to. --- .../alert/test/a11y/alert.e2e-legacy.ts | 63 -------- .../components/alert/test/a11y/alert.e2e.ts | 63 ++++++++ .../alert/test/basic/alert.e2e-legacy.ts | 113 -------------- .../components/alert/test/basic/alert.e2e.ts | 147 ++++++++++++++++++ ...lert-basic-ios-ltr-Mobile-Chrome-linux.png | Bin ...ert-basic-ios-ltr-Mobile-Firefox-linux.png | Bin ...lert-basic-ios-ltr-Mobile-Safari-linux.png | Bin ...lert-basic-ios-rtl-Mobile-Chrome-linux.png | Bin ...ert-basic-ios-rtl-Mobile-Firefox-linux.png | Bin ...lert-basic-ios-rtl-Mobile-Safari-linux.png | Bin ...alert-basic-md-ltr-Mobile-Chrome-linux.png | Bin ...lert-basic-md-ltr-Mobile-Firefox-linux.png | Bin ...alert-basic-md-ltr-Mobile-Safari-linux.png | Bin ...alert-basic-md-rtl-Mobile-Chrome-linux.png | Bin ...lert-basic-md-rtl-Mobile-Firefox-linux.png | Bin ...alert-basic-md-rtl-Mobile-Safari-linux.png | Bin ...t-checkbox-ios-ltr-Mobile-Chrome-linux.png | Bin ...-checkbox-ios-ltr-Mobile-Firefox-linux.png | Bin ...t-checkbox-ios-ltr-Mobile-Safari-linux.png | Bin ...t-checkbox-ios-rtl-Mobile-Chrome-linux.png | Bin ...-checkbox-ios-rtl-Mobile-Firefox-linux.png | Bin ...t-checkbox-ios-rtl-Mobile-Safari-linux.png | Bin ...rt-checkbox-md-ltr-Mobile-Chrome-linux.png | Bin ...t-checkbox-md-ltr-Mobile-Firefox-linux.png | Bin ...rt-checkbox-md-ltr-Mobile-Safari-linux.png | Bin ...rt-checkbox-md-rtl-Mobile-Chrome-linux.png | Bin ...t-checkbox-md-rtl-Mobile-Firefox-linux.png | Bin ...rt-checkbox-md-rtl-Mobile-Safari-linux.png | Bin ...rt-confirm-ios-ltr-Mobile-Chrome-linux.png | Bin ...t-confirm-ios-ltr-Mobile-Firefox-linux.png | Bin ...rt-confirm-ios-ltr-Mobile-Safari-linux.png | Bin ...rt-confirm-ios-rtl-Mobile-Chrome-linux.png | Bin ...t-confirm-ios-rtl-Mobile-Firefox-linux.png | Bin ...rt-confirm-ios-rtl-Mobile-Safari-linux.png | Bin ...ert-confirm-md-ltr-Mobile-Chrome-linux.png | Bin ...rt-confirm-md-ltr-Mobile-Firefox-linux.png | Bin ...ert-confirm-md-ltr-Mobile-Safari-linux.png | Bin ...ert-confirm-md-rtl-Mobile-Chrome-linux.png | Bin ...rt-confirm-md-rtl-Mobile-Firefox-linux.png | Bin ...ert-confirm-md-rtl-Mobile-Safari-linux.png | Bin ...ongMessage-ios-ltr-Mobile-Chrome-linux.png | Bin ...ngMessage-ios-ltr-Mobile-Firefox-linux.png | Bin ...ongMessage-ios-ltr-Mobile-Safari-linux.png | Bin ...ongMessage-ios-rtl-Mobile-Chrome-linux.png | Bin ...ngMessage-ios-rtl-Mobile-Firefox-linux.png | Bin ...ongMessage-ios-rtl-Mobile-Safari-linux.png | Bin ...longMessage-md-ltr-Mobile-Chrome-linux.png | Bin ...ongMessage-md-ltr-Mobile-Firefox-linux.png | Bin ...longMessage-md-ltr-Mobile-Safari-linux.png | Bin ...longMessage-md-rtl-Mobile-Chrome-linux.png | Bin ...ongMessage-md-rtl-Mobile-Firefox-linux.png | Bin ...longMessage-md-rtl-Mobile-Safari-linux.png | Bin ...pleButtons-ios-ltr-Mobile-Chrome-linux.png | Bin ...leButtons-ios-ltr-Mobile-Firefox-linux.png | Bin ...pleButtons-ios-ltr-Mobile-Safari-linux.png | Bin ...pleButtons-ios-rtl-Mobile-Chrome-linux.png | Bin ...leButtons-ios-rtl-Mobile-Firefox-linux.png | Bin ...pleButtons-ios-rtl-Mobile-Safari-linux.png | Bin ...ipleButtons-md-ltr-Mobile-Chrome-linux.png | Bin ...pleButtons-md-ltr-Mobile-Firefox-linux.png | Bin ...ipleButtons-md-ltr-Mobile-Safari-linux.png | Bin ...ipleButtons-md-rtl-Mobile-Chrome-linux.png | Bin ...pleButtons-md-rtl-Mobile-Firefox-linux.png | Bin ...ipleButtons-md-rtl-Mobile-Safari-linux.png | Bin ...-noMessage-ios-ltr-Mobile-Chrome-linux.png | Bin ...noMessage-ios-ltr-Mobile-Firefox-linux.png | Bin ...-noMessage-ios-ltr-Mobile-Safari-linux.png | Bin ...-noMessage-ios-rtl-Mobile-Chrome-linux.png | Bin ...noMessage-ios-rtl-Mobile-Firefox-linux.png | Bin ...-noMessage-ios-rtl-Mobile-Safari-linux.png | Bin ...t-noMessage-md-ltr-Mobile-Chrome-linux.png | Bin ...-noMessage-md-ltr-Mobile-Firefox-linux.png | Bin ...t-noMessage-md-ltr-Mobile-Safari-linux.png | Bin ...t-noMessage-md-rtl-Mobile-Chrome-linux.png | Bin ...-noMessage-md-rtl-Mobile-Firefox-linux.png | Bin ...t-noMessage-md-rtl-Mobile-Safari-linux.png | Bin ...ert-prompt-ios-ltr-Mobile-Chrome-linux.png | Bin ...rt-prompt-ios-ltr-Mobile-Firefox-linux.png | Bin ...ert-prompt-ios-ltr-Mobile-Safari-linux.png | Bin ...ert-prompt-ios-rtl-Mobile-Chrome-linux.png | Bin ...rt-prompt-ios-rtl-Mobile-Firefox-linux.png | Bin ...ert-prompt-ios-rtl-Mobile-Safari-linux.png | Bin ...lert-prompt-md-ltr-Mobile-Chrome-linux.png | Bin ...ert-prompt-md-ltr-Mobile-Firefox-linux.png | Bin ...lert-prompt-md-ltr-Mobile-Safari-linux.png | Bin ...lert-prompt-md-rtl-Mobile-Chrome-linux.png | Bin ...ert-prompt-md-rtl-Mobile-Firefox-linux.png | Bin ...lert-prompt-md-rtl-Mobile-Safari-linux.png | Bin ...lert-radio-ios-ltr-Mobile-Chrome-linux.png | Bin ...ert-radio-ios-ltr-Mobile-Firefox-linux.png | Bin ...lert-radio-ios-ltr-Mobile-Safari-linux.png | Bin ...lert-radio-ios-rtl-Mobile-Chrome-linux.png | Bin ...ert-radio-ios-rtl-Mobile-Firefox-linux.png | Bin ...lert-radio-ios-rtl-Mobile-Safari-linux.png | Bin ...alert-radio-md-ltr-Mobile-Chrome-linux.png | Bin ...lert-radio-md-ltr-Mobile-Firefox-linux.png | Bin ...alert-radio-md-ltr-Mobile-Safari-linux.png | Bin ...alert-radio-md-rtl-Mobile-Chrome-linux.png | Bin ...lert-radio-md-rtl-Mobile-Firefox-linux.png | Bin ...alert-radio-md-rtl-Mobile-Safari-linux.png | Bin .../alert/test/is-open/alert.e2e-legacy.ts | 34 ---- .../alert/test/is-open/alert.e2e.ts | 33 ++++ .../alert/test/standalone/alert.e2e-legacy.ts | 16 -- .../alert/test/standalone/alert.e2e.ts | 18 +++ ...standalone-ios-ltr-Mobile-Chrome-linux.png | Bin ...tandalone-ios-ltr-Mobile-Firefox-linux.png | Bin ...standalone-ios-ltr-Mobile-Safari-linux.png | Bin ...standalone-ios-rtl-Mobile-Chrome-linux.png | Bin ...tandalone-ios-rtl-Mobile-Firefox-linux.png | Bin ...standalone-ios-rtl-Mobile-Safari-linux.png | Bin ...-standalone-md-ltr-Mobile-Chrome-linux.png | Bin ...standalone-md-ltr-Mobile-Firefox-linux.png | Bin ...-standalone-md-ltr-Mobile-Safari-linux.png | Bin ...-standalone-md-rtl-Mobile-Chrome-linux.png | Bin ...standalone-md-rtl-Mobile-Firefox-linux.png | Bin ...-standalone-md-rtl-Mobile-Safari-linux.png | Bin .../alert/test/trigger/alert.e2e-legacy.ts | 35 ----- .../alert/test/trigger/alert.e2e.ts | 34 ++++ 118 files changed, 295 insertions(+), 261 deletions(-) delete mode 100644 core/src/components/alert/test/a11y/alert.e2e-legacy.ts create mode 100644 core/src/components/alert/test/a11y/alert.e2e.ts delete mode 100644 core/src/components/alert/test/basic/alert.e2e-legacy.ts create mode 100644 core/src/components/alert/test/basic/alert.e2e.ts rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-ios-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-ios-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-ios-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-ios-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-ios-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-ios-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-md-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-md-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-md-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-md-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-md-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-basic-md-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-ios-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-ios-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-ios-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-ios-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-ios-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-ios-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-md-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-md-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-md-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-md-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-md-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-checkbox-md-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-ios-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-ios-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-ios-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-ios-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-ios-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-ios-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-md-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-md-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-md-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-md-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-md-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-confirm-md-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-ios-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-ios-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-ios-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-ios-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-ios-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-ios-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-md-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-md-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-md-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-md-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-md-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-longMessage-md-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-ios-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-ios-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-ios-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-ios-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-ios-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-ios-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-md-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-md-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-md-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-md-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-md-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-multipleButtons-md-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-ios-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-ios-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-ios-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-ios-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-ios-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-ios-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-md-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-md-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-md-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-md-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-md-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-noMessage-md-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-ios-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-ios-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-ios-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-ios-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-ios-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-ios-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-md-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-md-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-md-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-md-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-md-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-prompt-md-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-ios-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-ios-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-ios-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-ios-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-ios-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-ios-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-md-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-md-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-md-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-md-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-md-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/basic/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-radio-md-rtl-Mobile-Safari-linux.png (100%) delete mode 100644 core/src/components/alert/test/is-open/alert.e2e-legacy.ts create mode 100644 core/src/components/alert/test/is-open/alert.e2e.ts delete mode 100644 core/src/components/alert/test/standalone/alert.e2e-legacy.ts create mode 100644 core/src/components/alert/test/standalone/alert.e2e.ts rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-ios-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-ios-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-ios-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-ios-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-ios-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-ios-rtl-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-md-ltr-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-md-ltr-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-md-ltr-Mobile-Safari-linux.png (100%) rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-md-rtl-Mobile-Chrome-linux.png (100%) rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-md-rtl-Mobile-Firefox-linux.png (100%) rename core/src/components/alert/test/standalone/{alert.e2e-legacy.ts-snapshots => alert.e2e.ts-snapshots}/alert-standalone-md-rtl-Mobile-Safari-linux.png (100%) delete mode 100644 core/src/components/alert/test/trigger/alert.e2e-legacy.ts create mode 100644 core/src/components/alert/test/trigger/alert.e2e.ts diff --git a/core/src/components/alert/test/a11y/alert.e2e-legacy.ts b/core/src/components/alert/test/a11y/alert.e2e-legacy.ts deleted file mode 100644 index 218e67d2bb..0000000000 --- a/core/src/components/alert/test/a11y/alert.e2e-legacy.ts +++ /dev/null @@ -1,63 +0,0 @@ -import AxeBuilder from '@axe-core/playwright'; -import { expect } from '@playwright/test'; -import type { E2EPage } from '@utils/test/playwright'; -import { test } from '@utils/test/playwright'; - -const testAria = async ( - page: E2EPage, - buttonID: string, - expectedAriaLabelledBy: string | null, - expectedAriaDescribedBy: string | null -) => { - const didPresent = await page.spyOnEvent('ionAlertDidPresent'); - const button = page.locator(`#${buttonID}`); - - await button.click(); - await didPresent.next(); - - const alert = page.locator('ion-alert'); - - /** - * expect().toHaveAttribute() can't check for a null value, so grab and check - * the values manually instead. - */ - const ariaLabelledBy = await alert.getAttribute('aria-labelledby'); - const ariaDescribedBy = await alert.getAttribute('aria-describedby'); - - expect(ariaLabelledBy).toBe(expectedAriaLabelledBy); - expect(ariaDescribedBy).toBe(expectedAriaDescribedBy); -}; - -test.describe('alert: a11y', () => { - test.beforeEach(async ({ page, skip }) => { - skip.rtl(); - await page.goto(`/src/components/alert/test/a11y`); - }); - - test('should not have accessibility violations when header and message are defined', async ({ page }) => { - const didPresent = await page.spyOnEvent('ionAlertDidPresent'); - const button = page.locator('#bothHeaders'); - await button.click(); - - await didPresent.next(); - - const results = await new AxeBuilder({ page }).analyze(); - expect(results.violations).toEqual([]); - }); - - test('should have aria-labelledby when header is set', async ({ page }) => { - await testAria(page, 'noMessage', 'alert-1-hdr', null); - }); - - test('should have aria-describedby when message is set', async ({ page }) => { - await testAria(page, 'noHeaders', null, 'alert-1-msg'); - }); - - test('should fall back to subHeader for aria-labelledby if header is not defined', async ({ page }) => { - await testAria(page, 'subHeaderOnly', 'alert-1-sub-hdr', 'alert-1-msg'); - }); - - test('should allow for manually specifying aria attributes', async ({ page }) => { - await testAria(page, 'customAria', 'Custom title', 'Custom description'); - }); -}); diff --git a/core/src/components/alert/test/a11y/alert.e2e.ts b/core/src/components/alert/test/a11y/alert.e2e.ts new file mode 100644 index 0000000000..8514c0fd5e --- /dev/null +++ b/core/src/components/alert/test/a11y/alert.e2e.ts @@ -0,0 +1,63 @@ +import AxeBuilder from '@axe-core/playwright'; +import { expect } from '@playwright/test'; +import type { E2EPage } from '@utils/test/playwright'; +import { configs, test } from '@utils/test/playwright'; + +const testAria = async ( + page: E2EPage, + buttonID: string, + expectedAriaLabelledBy: string | null, + expectedAriaDescribedBy: string | null +) => { + const didPresent = await page.spyOnEvent('ionAlertDidPresent'); + const button = page.locator(`#${buttonID}`); + + await button.click(); + await didPresent.next(); + + const alert = page.locator('ion-alert'); + + /** + * expect().toHaveAttribute() can't check for a null value, so grab and check + * the values manually instead. + */ + const ariaLabelledBy = await alert.getAttribute('aria-labelledby'); + const ariaDescribedBy = await alert.getAttribute('aria-describedby'); + + expect(ariaLabelledBy).toBe(expectedAriaLabelledBy); + expect(ariaDescribedBy).toBe(expectedAriaDescribedBy); +}; + +configs({ directions: ['ltr'] }).forEach(({ config, title }) => { + test.describe(title('alert: a11y'), () => { + test.beforeEach(async ({ page }) => { + await page.goto(`/src/components/alert/test/a11y`, config); + }); + test('should not have accessibility violations when header and message are defined', async ({ page }) => { + const didPresent = await page.spyOnEvent('ionAlertDidPresent'); + const button = page.locator('#bothHeaders'); + await button.click(); + + await didPresent.next(); + + const results = await new AxeBuilder({ page }).analyze(); + expect(results.violations).toEqual([]); + }); + + test('should have aria-labelledby when header is set', async ({ page }) => { + await testAria(page, 'noMessage', 'alert-1-hdr', null); + }); + + test('should have aria-describedby when message is set', async ({ page }) => { + await testAria(page, 'noHeaders', null, 'alert-1-msg'); + }); + + test('should fall back to subHeader for aria-labelledby if header is not defined', async ({ page }) => { + await testAria(page, 'subHeaderOnly', 'alert-1-sub-hdr', 'alert-1-msg'); + }); + + test('should allow for manually specifying aria attributes', async ({ page }) => { + await testAria(page, 'customAria', 'Custom title', 'Custom description'); + }); + }); +}); diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts b/core/src/components/alert/test/basic/alert.e2e-legacy.ts deleted file mode 100644 index 592d24f555..0000000000 --- a/core/src/components/alert/test/basic/alert.e2e-legacy.ts +++ /dev/null @@ -1,113 +0,0 @@ -import { expect } from '@playwright/test'; -import type { E2EPage } from '@utils/test/playwright'; -import { test } from '@utils/test/playwright'; - -const openAlert = async (page: E2EPage, buttonID: string) => { - const didPresent = await page.spyOnEvent('ionAlertDidPresent'); - - await page.click(`#${buttonID}`); - await didPresent.next(); - - return page.locator('ion-alert'); -}; - -const testAlert = async (page: E2EPage, buttonID: string) => { - await page.goto(`/src/components/alert/test/basic`); - - const didDismiss = await page.spyOnEvent('ionAlertDidDismiss'); - const alert = await openAlert(page, buttonID); - - await expect(alert).toBeVisible(); - await expect(alert).toHaveScreenshot(`alert-${buttonID}-${page.getSnapshotSettings()}.png`); - - await alert.evaluate((el: HTMLIonAlertElement) => el.dismiss()); - await didDismiss.next(); - - await expect(alert).toHaveCount(0); -}; - -test.describe('alert: basic', () => { - test('focus trap should work correctly', async ({ page, skip, browserName }) => { - skip.rtl(); - await page.goto(`/src/components/alert/test/basic`); - - const tabKey = browserName === 'webkit' ? 'Alt+Tab' : 'Tab'; - - const alert = await openAlert(page, 'multipleButtons'); - const alertBtns = alert.locator('button'); - - await page.keyboard.press(tabKey); - await expect(alertBtns.nth(0)).toBeFocused(); - - await page.keyboard.press(`Shift+${tabKey}`); - await expect(alertBtns.nth(2)).toBeFocused(); - - await page.keyboard.press(tabKey); - await expect(alertBtns.nth(0)).toBeFocused(); - }); - - test('should set custom attributes', async ({ page, skip }) => { - skip.rtl(); - await page.goto(`/src/components/alert/test/basic`); - - const alert = await openAlert(page, 'basic'); - await expect(alert).toHaveAttribute('data-testid', 'basic-alert'); - }); - - test('should dismiss when async handler resolves', async ({ page, skip }) => { - skip.rtl(); - await page.goto(`/src/components/alert/test/basic`); - - const ionAlertDidPresent = await page.spyOnEvent('ionAlertDidPresent'); - const ionAlertDidDismiss = await page.spyOnEvent('ionAlertDidDismiss'); - const ionLoadingDidDismiss = await page.spyOnEvent('ionLoadingDidDismiss'); - - const alert = page.locator('ion-alert'); - - await page.click('#asyncHandler'); - await ionAlertDidPresent.next(); - - await page.click('.alert-button'); - - await expect(alert).toBeVisible(); - - await ionLoadingDidDismiss.next(); - await ionAlertDidDismiss.next(); - - await expect(alert).toBeHidden(); - }); - - test.describe('should not have visual regressions', () => { - test('header, subheader, message', async ({ page }) => { - await testAlert(page, 'basic'); - }); - - test('long message', async ({ page }) => { - await testAlert(page, 'longMessage'); - }); - - test('more than two buttons', async ({ page }) => { - await testAlert(page, 'multipleButtons'); - }); - - test('no message', async ({ page }) => { - await testAlert(page, 'noMessage'); - }); - - test('two buttons', async ({ page }) => { - await testAlert(page, 'confirm'); - }); - - test('form prompt', async ({ page }) => { - await testAlert(page, 'prompt'); - }); - - test('radios', async ({ page }) => { - await testAlert(page, 'radio'); - }); - - test('checkboxes', async ({ page }) => { - await testAlert(page, 'checkbox'); - }); - }); -}); diff --git a/core/src/components/alert/test/basic/alert.e2e.ts b/core/src/components/alert/test/basic/alert.e2e.ts new file mode 100644 index 0000000000..db6feb1f8b --- /dev/null +++ b/core/src/components/alert/test/basic/alert.e2e.ts @@ -0,0 +1,147 @@ +import { expect } from '@playwright/test'; +import type { Locator } from '@playwright/test'; +import type { E2EPage } from '@utils/test/playwright'; +import { configs, test } from '@utils/test/playwright'; + +configs({ directions: ['ltr'] }).forEach(({ config, screenshot, title }) => { + test.describe(title('alert: basic'), () => { + test.beforeEach(async ({ page }) => { + await page.goto('/src/components/alert/test/basic', config); + }); + test('focus trap should work correctly', async ({ page, browserName }) => { + const tabKey = browserName === 'webkit' ? 'Alt+Tab' : 'Tab'; + + const alertFixture = new AlertFixture(page, screenshot); + + const alert = await alertFixture.open('#multipleButtons'); + const alertBtns = alert.locator('button'); + + await page.keyboard.press(tabKey); + await expect(alertBtns.nth(0)).toBeFocused(); + + await page.keyboard.press(`Shift+${tabKey}`); + await expect(alertBtns.nth(2)).toBeFocused(); + + await page.keyboard.press(tabKey); + await expect(alertBtns.nth(0)).toBeFocused(); + }); + + test('should set custom attributes', async ({ page }) => { + const alertFixture = new AlertFixture(page, screenshot); + + const alert = await alertFixture.open('#basic'); + await expect(alert).toHaveAttribute('data-testid', 'basic-alert'); + }); + + test('should dismiss when async handler resolves', async ({ page }) => { + const ionAlertDidPresent = await page.spyOnEvent('ionAlertDidPresent'); + const ionAlertDidDismiss = await page.spyOnEvent('ionAlertDidDismiss'); + const ionLoadingDidDismiss = await page.spyOnEvent('ionLoadingDidDismiss'); + + const alert = page.locator('ion-alert'); + + await page.click('#asyncHandler'); + await ionAlertDidPresent.next(); + + await page.click('.alert-button'); + + await expect(alert).toBeVisible(); + + await ionLoadingDidDismiss.next(); + await ionAlertDidDismiss.next(); + + await expect(alert).toBeHidden(); + }); + }); +}); + +configs().forEach(({ config, screenshot, title }) => { + test.describe(title('should not have visual regressions'), () => { + let alertFixture!: AlertFixture; + + test.beforeEach(async ({ page }) => { + await page.goto('/src/components/alert/test/basic', config); + alertFixture = new AlertFixture(page, screenshot); + }); + test('header, subheader, message', async () => { + await alertFixture.open('#basic'); + await alertFixture.screenshot('basic'); + }); + + test('long message', async () => { + await alertFixture.open('#longMessage'); + await alertFixture.screenshot('longMessage'); + }); + + test('more than two buttons', async () => { + await alertFixture.open('#multipleButtons'); + await alertFixture.screenshot('multipleButtons'); + }); + + test('no message', async () => { + await alertFixture.open('#noMessage'); + await alertFixture.screenshot('noMessage'); + }); + + test('two buttons', async () => { + await alertFixture.open('#confirm'); + await alertFixture.screenshot('confirm'); + }); + + test('form prompt', async () => { + await alertFixture.open('#prompt'); + await alertFixture.screenshot('prompt'); + }); + + test('radios', async () => { + await alertFixture.open('#radio'); + await alertFixture.screenshot('radio'); + }); + + test('checkboxes', async () => { + await alertFixture.open('#checkbox'); + await alertFixture.screenshot('checkbox'); + }); + }); +}); + +class AlertFixture { + readonly page: E2EPage; + readonly screenshotFn?: (file: string) => string; + + private alert!: Locator; + + constructor(page: E2EPage, screenshot?: (file: string) => string) { + this.page = page; + this.screenshotFn = screenshot; + } + + async open(selector: string) { + const ionAlertDidPresent = await this.page.spyOnEvent('ionAlertDidPresent'); + await this.page.locator(selector).click(); + await ionAlertDidPresent.next(); + this.alert = this.page.locator('ion-alert'); + await expect(this.alert).toBeVisible(); + + return this.alert; + } + + async dismiss() { + const ionAlertDidDismiss = await this.page.spyOnEvent('ionAlertDidDismiss'); + await this.alert.evaluate((el: HTMLIonAlertElement) => el.dismiss()); + await ionAlertDidDismiss.next(); + await expect(this.alert).not.toBeVisible(); + } + + async screenshot(modifier: string) { + const { screenshotFn } = this; + + if (!screenshotFn) { + throw new Error( + 'A screenshot function is required to take a screenshot. Pass one in when creating ActionSheetFixture.' + ); + } + + await expect(this.alert).toHaveScreenshot(screenshotFn(`alert-${modifier}`)); + } +} diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-ios-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-ios-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-basic-md-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-basic-md-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-ios-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-checkbox-md-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-checkbox-md-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-ios-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-ios-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-confirm-md-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-confirm-md-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-ios-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-longMessage-md-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-longMessage-md-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-ios-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-multipleButtons-md-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-ios-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-noMessage-md-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-noMessage-md-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-ios-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-ios-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-prompt-md-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-prompt-md-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-ios-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-ios-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/basic/alert.e2e-legacy.ts-snapshots/alert-radio-md-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/basic/alert.e2e.ts-snapshots/alert-radio-md-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/is-open/alert.e2e-legacy.ts b/core/src/components/alert/test/is-open/alert.e2e-legacy.ts deleted file mode 100644 index b702eac297..0000000000 --- a/core/src/components/alert/test/is-open/alert.e2e-legacy.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { expect } from '@playwright/test'; -import { test } from '@utils/test/playwright'; - -test.describe('alert: isOpen', () => { - test.beforeEach(async ({ page, skip }) => { - skip.rtl('isOpen does not behave differently in RTL'); - skip.mode('md', 'isOpen does not behave differently in MD'); - await page.goto('/src/components/alert/test/is-open'); - }); - - test('should open the alert', async ({ page }) => { - const ionAlertDidPresent = await page.spyOnEvent('ionAlertDidPresent'); - const alert = page.locator('ion-alert'); - - await page.click('#default'); - - await ionAlertDidPresent.next(); - await expect(alert).toBeVisible(); - }); - - test('should open the alert then close after a timeout', async ({ page }) => { - const ionAlertDidPresent = await page.spyOnEvent('ionAlertDidPresent'); - const ionAlertDidDismiss = await page.spyOnEvent('ionAlertDidDismiss'); - const alert = page.locator('ion-alert'); - - await page.click('#timeout'); - - await ionAlertDidPresent.next(); - await expect(alert).toBeVisible(); - - await ionAlertDidDismiss.next(); - await expect(alert).toBeHidden(); - }); -}); diff --git a/core/src/components/alert/test/is-open/alert.e2e.ts b/core/src/components/alert/test/is-open/alert.e2e.ts new file mode 100644 index 0000000000..5fa7980c7e --- /dev/null +++ b/core/src/components/alert/test/is-open/alert.e2e.ts @@ -0,0 +1,33 @@ +import { expect } from '@playwright/test'; +import { configs, test } from '@utils/test/playwright'; + +configs({ directions: ['ltr'], modes: ['ios'] }).forEach(({ config, title }) => { + test.describe(title('alert: isOpen'), () => { + test.beforeEach(async ({ page }) => { + await page.goto('/src/components/alert/test/is-open', config); + }); + test('should open the alert', async ({ page }) => { + const ionAlertDidPresent = await page.spyOnEvent('ionAlertDidPresent'); + const alert = page.locator('ion-alert'); + + await page.click('#default'); + + await ionAlertDidPresent.next(); + await expect(alert).toBeVisible(); + }); + + test('should open the alert then close after a timeout', async ({ page }) => { + const ionAlertDidPresent = await page.spyOnEvent('ionAlertDidPresent'); + const ionAlertDidDismiss = await page.spyOnEvent('ionAlertDidDismiss'); + const alert = page.locator('ion-alert'); + + await page.click('#timeout'); + + await ionAlertDidPresent.next(); + await expect(alert).toBeVisible(); + + await ionAlertDidDismiss.next(); + await expect(alert).toBeHidden(); + }); + }); +}); diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts b/core/src/components/alert/test/standalone/alert.e2e-legacy.ts deleted file mode 100644 index 1f7c6f1f75..0000000000 --- a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { expect } from '@playwright/test'; -import { test } from '@utils/test/playwright'; - -test.describe('alert: standalone', () => { - test('should not have visual regressions', async ({ page }) => { - await page.goto(`/src/components/alert/test/standalone`); - - const alert = page.locator('ion-alert'); - const didPresent = await page.spyOnEvent('ionAlertDidPresent'); - - await page.click('#basic'); - await didPresent.next(); - - await expect(alert).toHaveScreenshot(`alert-standalone-${page.getSnapshotSettings()}.png`); - }); -}); diff --git a/core/src/components/alert/test/standalone/alert.e2e.ts b/core/src/components/alert/test/standalone/alert.e2e.ts new file mode 100644 index 0000000000..071ee362ad --- /dev/null +++ b/core/src/components/alert/test/standalone/alert.e2e.ts @@ -0,0 +1,18 @@ +import { expect } from '@playwright/test'; +import { configs, test } from '@utils/test/playwright'; + +configs().forEach(({ config, screenshot, title }) => { + test.describe(title('alert: standalone'), () => { + test('should not have visual regressions', async ({ page }) => { + await page.goto(`/src/components/alert/test/standalone`, config); + + const alert = page.locator('ion-alert'); + const didPresent = await page.spyOnEvent('ionAlertDidPresent'); + + await page.click('#basic'); + await didPresent.next(); + + await expect(alert).toHaveScreenshot(screenshot('alert-standalone')); + }); + }); +}); diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-ios-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-ios-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-ltr-Mobile-Chrome-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-ltr-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-ltr-Mobile-Chrome-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-ltr-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-ltr-Mobile-Firefox-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-ltr-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-ltr-Mobile-Firefox-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-ltr-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-ltr-Mobile-Safari-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-ltr-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-ltr-Mobile-Safari-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-ltr-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-rtl-Mobile-Chrome-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-rtl-Mobile-Chrome-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-rtl-Mobile-Chrome-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-rtl-Mobile-Chrome-linux.png diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-rtl-Mobile-Firefox-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-rtl-Mobile-Firefox-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-rtl-Mobile-Firefox-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-rtl-Mobile-Firefox-linux.png diff --git a/core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-rtl-Mobile-Safari-linux.png b/core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-rtl-Mobile-Safari-linux.png similarity index 100% rename from core/src/components/alert/test/standalone/alert.e2e-legacy.ts-snapshots/alert-standalone-md-rtl-Mobile-Safari-linux.png rename to core/src/components/alert/test/standalone/alert.e2e.ts-snapshots/alert-standalone-md-rtl-Mobile-Safari-linux.png diff --git a/core/src/components/alert/test/trigger/alert.e2e-legacy.ts b/core/src/components/alert/test/trigger/alert.e2e-legacy.ts deleted file mode 100644 index 9108bae42f..0000000000 --- a/core/src/components/alert/test/trigger/alert.e2e-legacy.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { expect } from '@playwright/test'; -import { test } from '@utils/test/playwright'; - -test.describe('alert: trigger', () => { - test.beforeEach(async ({ page, skip }) => { - skip.rtl('trigger does not behave differently in RTL'); - skip.mode('md'); - await page.goto('/src/components/alert/test/trigger'); - }); - - test('should open the alert', async ({ page }) => { - const ionAlertDidPresent = await page.spyOnEvent('ionAlertDidPresent'); - const alert = page.locator('#default-alert'); - - await page.click('#default'); - - await ionAlertDidPresent.next(); - await expect(alert).toBeVisible(); - }); - - test('should present a previously presented alert', async ({ page }) => { - const ionAlertDidPresent = await page.spyOnEvent('ionAlertDidPresent'); - const ionAlertDidDismiss = await page.spyOnEvent('ionAlertDidDismiss'); - const alert = page.locator('#timeout-alert'); - - await page.click('#timeout'); - - await ionAlertDidDismiss.next(); - - await page.click('#timeout'); - - await ionAlertDidPresent.next(); - await expect(alert).toBeVisible(); - }); -}); diff --git a/core/src/components/alert/test/trigger/alert.e2e.ts b/core/src/components/alert/test/trigger/alert.e2e.ts new file mode 100644 index 0000000000..ec6afe5743 --- /dev/null +++ b/core/src/components/alert/test/trigger/alert.e2e.ts @@ -0,0 +1,34 @@ +import { expect } from '@playwright/test'; +import { configs, test } from '@utils/test/playwright'; + +configs({ directions: ['ltr'], modes: ['ios'] }).forEach(({ config, title }) => { + test.describe(title('alert: trigger'), () => { + test.beforeEach(async ({ page }) => { + await page.goto('/src/components/alert/test/trigger', config); + }); + test('should open the alert', async ({ page }) => { + const ionAlertDidPresent = await page.spyOnEvent('ionAlertDidPresent'); + const alert = page.locator('#default-alert'); + + await page.click('#default'); + + await ionAlertDidPresent.next(); + await expect(alert).toBeVisible(); + }); + + test('should present a previously presented alert', async ({ page }) => { + const ionAlertDidPresent = await page.spyOnEvent('ionAlertDidPresent'); + const ionAlertDidDismiss = await page.spyOnEvent('ionAlertDidDismiss'); + const alert = page.locator('#timeout-alert'); + + await page.click('#timeout'); + + await ionAlertDidDismiss.next(); + + await page.click('#timeout'); + + await ionAlertDidPresent.next(); + await expect(alert).toBeVisible(); + }); + }); +});