From 7ecd41f38502da92c9dc05941bc473438762560d Mon Sep 17 00:00:00 2001 From: Maria Hutt Date: Mon, 23 Oct 2023 10:36:34 -0700 Subject: [PATCH] test(radio): skip Safari on legacy tab key tests (#28387) Issue number: internal --------- ## What is the current behavior? Legacy radio has tests that use `Tab` key presses. These tend to flake at unknown moments and were skipped until a fix can be implemented. ## What is the new behavior? Unable to replicate the flakiness locally or on GitHub. However, it only fails on Safari so the tests were re-enabled except for Safari. ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information This only happens on legacy. The legacy form controls will also be removed in the future. Due to this, these tests will be removed anyways at that time. --- .../components/radio/test/legacy/a11y/radio.e2e.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/core/src/components/radio/test/legacy/a11y/radio.e2e.ts b/core/src/components/radio/test/legacy/a11y/radio.e2e.ts index c3567e26cf..af6ccbfeb2 100644 --- a/core/src/components/radio/test/legacy/a11y/radio.e2e.ts +++ b/core/src/components/radio/test/legacy/a11y/radio.e2e.ts @@ -6,10 +6,11 @@ import { configs, test } from '@utils/test/playwright'; */ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => { test.describe(title('radio: a11y'), () => { - // TODO(FW-5218) - test.fixme('tabbing should switch between radio groups', async ({ page, pageUtils }) => { + test.beforeEach(async ({ page, skip }) => { + skip.browser('webkit', 'Tabbing is flaky in Safari'); await page.goto(`/src/components/radio/test/legacy/a11y`, config); - + }); + test('tabbing should switch between radio groups', async ({ page, pageUtils }) => { const firstGroupRadios = page.locator('#first-group ion-radio'); const secondGroupRadios = page.locator('#second-group ion-radio'); @@ -22,10 +23,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => await pageUtils.pressKeys('shift+Tab'); await expect(firstGroupRadios.nth(0)).toBeFocused(); }); - // TODO(FW-5218) - test.fixme('using arrow keys should move between enabled radios within group', async ({ page, pageUtils }) => { - await page.goto(`/src/components/radio/test/legacy/a11y`, config); - + test('using arrow keys should move between enabled radios within group', async ({ page, pageUtils }) => { const firstGroupRadios = page.locator('#first-group ion-radio'); await pageUtils.pressKeys('Tab');