From d623ee56f622a97bf8cce04418d7864556e1b91f Mon Sep 17 00:00:00 2001 From: Nicolas Merget Date: Mon, 22 Jul 2024 19:32:42 +0200 Subject: [PATCH] test: guidepup --- showcases/screen-reader/tests/button.spec.ts | 6 +++--- showcases/screen-reader/tests/input.spec.ts | 8 ++------ showcases/screen-reader/tests/radio.spec.ts | 3 ++- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/showcases/screen-reader/tests/button.spec.ts b/showcases/screen-reader/tests/button.spec.ts index d915c14a070..2ec1117ee12 100644 --- a/showcases/screen-reader/tests/button.spec.ts +++ b/showcases/screen-reader/tests/button.spec.ts @@ -31,9 +31,9 @@ test.describe('DBButton', () => { const screenReader = voiceOver ?? nvda; await screenReader?.press('Tab'); await screenReader?.clearSpokenPhraseLog(); - await nvda?.press('Shift+Tab'); - await nvda?.press('Tab'); - await nvda?.press('Tab'); + await screenReader?.press('Shift+Tab'); + await screenReader?.press('Tab'); + await screenReader?.press('Tab'); } }); }); diff --git a/showcases/screen-reader/tests/input.spec.ts b/showcases/screen-reader/tests/input.spec.ts index d44d1d7c0b7..a426798d916 100644 --- a/showcases/screen-reader/tests/input.spec.ts +++ b/showcases/screen-reader/tests/input.spec.ts @@ -8,15 +8,11 @@ test.describe('DBInput', () => { title: 'should have message and label (tab)', url: './#/03/input?page=variant%20helper%20message', async testFn(voiceOver, nvda) { - if (voiceOver) { - await voiceOver?.stopInteracting(); - } - const screenReader = voiceOver ?? nvda; await screenReader?.press('Tab'); await screenReader?.clearSpokenPhraseLog(); - await nvda?.press('Shift+Tab'); - await nvda?.press('Tab'); + await screenReader?.press('Shift+Tab'); + await screenReader?.press('Tab'); } }); }); diff --git a/showcases/screen-reader/tests/radio.spec.ts b/showcases/screen-reader/tests/radio.spec.ts index 5391e8056d4..51bbe4d37da 100644 --- a/showcases/screen-reader/tests/radio.spec.ts +++ b/showcases/screen-reader/tests/radio.spec.ts @@ -37,7 +37,8 @@ test.describe('DBRadio', () => { await nvda?.press('Right'); await nvda?.press('Right'); } else if (voiceOver) { - await voiceOver?.press('Down'); + await voiceOver?.press('Tab'); + await voiceOver?.press('Right'); await voiceOver?.clearSpokenPhraseLog(); await voiceOver?.press('Left'); await voiceOver?.press('Right');