Skip to content

Commit

Permalink
test: guidepup
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Jul 22, 2024
1 parent b35da32 commit d623ee5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions showcases/screen-reader/tests/button.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});
});
8 changes: 2 additions & 6 deletions showcases/screen-reader/tests/input.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});
});
3 changes: 2 additions & 1 deletion showcases/screen-reader/tests/radio.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit d623ee5

Please sign in to comment.