Skip to content

Commit

Permalink
test: screen-reader
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Apr 24, 2024
1 parent f0d03c3 commit 4f7a521
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["Default","Default","Text"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["Label","Label (Default) Basic edit text"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["","",""]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["Default","Default","Text"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["Label clickable","end of Label group"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["","",""]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["button, (Default) Text","button, user Icon and Text","button, user Icon"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["Label, edit, has auto complete, (Default) Basic, blank","Label, edit, has auto complete, information circle Helper Message, Helper Message, blank"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["Expressive, radio button, checked, 3 of 3","Functional, radio button, checked, 1 of 3","(Default) Regular, radio button, checked, 2 of 3"]
3 changes: 2 additions & 1 deletion screen-reader-test/screen-reader/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const cleanSpeakInstructions = (phraseLog: string[]): string[] =>
sPhrase.startsWith("You are currently") ||
sPhrase.startsWith("To enter") ||
sPhrase.startsWith("To exit") ||
sPhrase.startsWith("To click")
sPhrase.startsWith("To click") ||
sPhrase.startsWith("To select")
),
)
.join(". "),
Expand Down
9 changes: 5 additions & 4 deletions screen-reader-test/screen-reader/tests/radio.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ test.describe("DBRadio", () => {
title: "should label duplicated",
url: "./#/03/radio?page=density",
testFn: async (voiceOver, nvda) => {
const screenReader = voiceOver ?? nvda;
await screenReader.press("ArrowLeft");
await screenReader.press("ArrowRight");
await screenReader.press("ArrowRight");
const screenReader = voiceOver ?? nvda;
await screenReader.press("Spacebar");
await screenReader.press("ArrowLeft");
await screenReader.press("ArrowRight");
await screenReader.press("ArrowRight");
},
});
});

0 comments on commit 4f7a521

Please sign in to comment.