Skip to content

Commit 7d46646

Browse files
authored
Test Plan for the Checkbox Example (Two State) V2 (#1305)
* Remove checkbox v1 test plan * Add references.csv * Add trimmed example and update references.csv * Create Checkbox Test Plan v2 * Correct VoiceOver command * Generate .html source files with scripts automatically * Editorial corrections to references.csv * Correct NVDA command for navigating forward to the checkbox * Editorial corrections to assertions.csv to make names consistent * Update priority for role `group` and list boundary * Remove assertion for group boundary * Editorial changes to assertions.csv to convey state of the `checkbox` * Change priority to 1 for role and name of the group assertions when navigating with arrows for tests 1 and 3 * Remove group related assertions from tests 2 and 4 * Remove enter from all ATs commands for operating a checkbox * Set priority to should for group related assertions in tests 5 and 6 when requesting info with ins+tab and VO+f3 VO+f4 * Add c and shift+c navigation commands for VoiceOver in tests 1 to 4 * add quick nav setting for VoiceOver for c and shift+c into tests 1 to 4
1 parent 7170ce1 commit 7d46646

35 files changed

+859
-762
lines changed

tests/checkbox/data/assertions.csv

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
assertionId,priority,assertionStatement,assertionPhrase,refIds
2+
nameLettuce,1,"Name of the checkbox, 'Lettuce', is conveyed","convey name of the checkbox, 'Lettuce'",checkbox
3+
roleCheckbox,1,Role 'checkbox' is conveyed,convey role 'checkbox',checkbox
4+
stateChangeToNotChecked,1,"Change in state, to 'not checked', is conveyed","convey change in state, to 'not checked'",aria-checked
5+
stateChangeToChecked,1,"Change in state, to 'checked', is conveyed","convey change in state, to 'checked'",aria-checked
6+
stateNotChecked,1,"State of the checkbox, 'not checked', is conveyed","convey state of the checkbox, 'not checked'",aria-checked
7+
stateChecked,1,"State of the checkbox, 'checked', is conveyed","convey state of the checkbox, 'checked'",aria-checked
8+
listBoundary,3,List boundary is conveyed,convey list boundary,list
9+
roleGroup,2,Role 'group' is conveyed,convey role 'group',group
10+
nameSandwichCondiments,1,"Name of the group, 'Sandwich Condiments', is conveyed","convey name of the group, 'Sandwich Condiments'",aria-labelledby

tests/checkbox/data/commands.csv

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
testId,command,settings,assertionExceptions,presentationNumber
2+
navForwardsToNotCheckedCheckbox,x,virtualCursor,,1
3+
navForwardsToNotCheckedCheckbox,f,virtualCursor,,1.1
4+
navForwardsToNotCheckedCheckbox,down down down,virtualCursor,1:roleGroup 1:nameSandwichCondiments 1:listBoundary,1.2
5+
navForwardsToNotCheckedCheckbox,tab,virtualCursor,,1.3
6+
navForwardsToNotCheckedCheckbox,tab,pcCursor,,2
7+
navBackToNotCheckedCheckbox,shift+x,virtualCursor,,4
8+
navBackToNotCheckedCheckbox,shift+f,virtualCursor,,4.1
9+
navBackToNotCheckedCheckbox,up,virtualCursor,,4.2
10+
navBackToNotCheckedCheckbox,shift+tab,virtualCursor,,4.3
11+
navBackToNotCheckedCheckbox,shift+tab,pcCursor,,5
12+
navForwardsToCheckedCheckbox,x,virtualCursor,,7
13+
navForwardsToCheckedCheckbox,f,virtualCursor,,7.1
14+
navForwardsToCheckedCheckbox,down down down,virtualCursor,1:roleGroup 1:nameSandwichCondiments 1:listBoundary,7.2
15+
navForwardsToCheckedCheckbox,tab,virtualCursor,,7.3
16+
navForwardsToCheckedCheckbox,tab,pcCursor,,8
17+
navBackToCheckedCheckbox,shift+x,virtualCursor,,10
18+
navBackToCheckedCheckbox,shift+f,virtualCursor,,10.1
19+
navBackToCheckedCheckbox,up,virtualCursor,,10.2
20+
navBackToCheckedCheckbox,shift+tab,virtualCursor,,10.3
21+
navBackToCheckedCheckbox,shift+tab,pcCursor,,11
22+
reqInfoAboutNotCheckedCheckbox,ins+tab,virtualCursor,2:roleGroup 2:nameSandwichCondiments,13
23+
reqInfoAboutNotCheckedCheckbox,ins+up,virtualCursor,,13.1
24+
reqInfoAboutNotCheckedCheckbox,ins+tab,pcCursor,2:roleGroup 2:nameSandwichCondiments,14
25+
reqInfoAboutNotCheckedCheckbox,ins+up,pcCursor,,14.1
26+
reqInfoAboutCheckedCheckbox,ins+tab,virtualCursor,2:roleGroup 2:nameSandwichCondiments,16
27+
reqInfoAboutCheckedCheckbox,ins+up,virtualCursor,,16.1
28+
reqInfoAboutCheckedCheckbox,ins+tab,pcCursor,2:roleGroup 2:nameSandwichCondiments,17
29+
reqInfoAboutCheckedCheckbox,ins+up,pcCursor,,17.1
30+
operateNotCheckedCheckbox,space,virtualCursor,,19
31+
operateNotCheckedCheckbox,space,pcCursor,,20
32+
operateCheckedCheckbox,space,virtualCursor,,22
33+
operateCheckedCheckbox,space,pcCursor,,23

tests/checkbox/data/js/checkFirstCheckbox.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/checkbox/data/js/moveFocusAndCheckFirstCheckbox.js

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// sets focus on a link after the checkbox, and sets the checkbox state to 'checked'
2+
testPageDocument.querySelector('[role="checkbox"]').setAttribute('aria-checked', 'true');
3+
testPageDocument.getElementById('afterlink').focus();
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// sets focus on a link after the checkbox
2+
testPageDocument.getElementById('afterlink').focus();
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// sets focus on a link before the checkbox, and sets the state of the checkbox to 'checked'
2+
testPageDocument.querySelector('[role="checkbox"]').setAttribute('aria-checked', 'true');
3+
testPageDocument.getElementById('beforelink').focus();
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// sets focus on a link before the checkbox
2+
testPageDocument.getElementById('beforelink').focus();
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// sets focus on the 'Lettuce' checkbox, and sets its state to 'checked'
2+
testPageDocument.querySelector('[role="checkbox"]').setAttribute('aria-checked', 'true');
3+
testPageDocument.querySelector('[role="checkbox"]').focus();

0 commit comments

Comments
 (0)