Skip to content

Commit

Permalink
chore: update screen-reader test
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Feb 4, 2025
1 parent 195398e commit 785dcf7
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions showcases/screen-reader/tests/tag.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ test.describe('DBTag', () => {
const screenReader = voiceOver ?? nvda;
await screenReader?.clearSpokenPhraseLog();
await (voiceOver ? screenReader?.next() : screenReader?.previous()); // Focus "default static"

await screenReader?.next(); // Focus "removable"
await screenReader?.next(); // Focus "remove button"
await screenReader?.act(); // Interact "remove button"

await screenReader?.next(); // Focus "button"
await screenReader?.next(); // Focus "link"
await screenReader?.next(); // Focus "checkbox"
Expand All @@ -43,15 +48,6 @@ test.describe('DBTag', () => {
if (voiceOver) {
await screenReader?.next(); // Focus "radio 1 inline-text"
}

await screenReader?.next(); // Focus "radio 2"
if (voiceOver) {
await screenReader?.next(); // Focus "radio 2 inline-text"
}

await screenReader?.next(); // Focus "removable"
await screenReader?.next(); // Focus "remove button"
await screenReader?.act(); // Interact "remove button"
}
});
});

0 comments on commit 785dcf7

Please sign in to comment.