Skip to content

Commit

Permalink
Refactor Navigation Menu Button test plan to V2 test format (pull #996)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: IsaDC <[email protected]>
Co-authored-by: Matt King <[email protected]>
  • Loading branch information
3 people authored Sep 19, 2024
1 parent 122e07a commit bab79e2
Show file tree
Hide file tree
Showing 25 changed files with 1,480 additions and 672 deletions.
15 changes: 15 additions & 0 deletions tests/menu-button-navigation/data/assertions.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
assertionId,priority,assertionStatement,assertionPhrase,refIds
nameLinks,1,"Name of the menu button, 'WAI-ARIA Quick Links', is conveyed","convey name of the menu button, 'WAI-ARIA Quick Links'",button
nameMenuLinks,3,"Name of the menu, 'WAI-ARIA Quick Links', is conveyed","convey name of the menu, 'WAI-ARIA Quick Links'",menu aria-labelledby
nameFocusedItemHome,1,"Name of the focused item, 'W3C Home Page', is conveyed","convey name of the focused item, 'W3C Home Page'",
nameFocusedItemIniciative,1,"Name of the focused item, 'W3C Web Accessibility Initiative', is conveyed","convey name of the focused item, 'W3C Web Accessibility Initiative'",
nameFocusedItemDescription,1,"Name of the focused item, 'Accessible Name and Description', is conveyed","convey name of the focused item, 'Accessible Name and Description'",
numberItemsMenu6,2,"Number of items in the menu,'(6', is conveyed","convey number of items in the menu, '4'",aria-setsize
roleFocusedItemMenuItem,2,"Role of the focused item, 'menu item', is conveyed","convey role of the focused item, 'menu item'",menuitem
roleMenu,3,Role 'menu' is conveyed,convey role 'menu',menu
roleMenuButton,1,Role 'menu button' is conveyed,convey role 'menu button',button aria-haspopup
stateCollapsed,1,State 'collapsed' is conveyed,convey state 'collapsed',aria-expanded
interactionModeEnabled,2,Screen reader switched from reading mode to interaction mode|{screenReader} switched from {readingMode} to {interactionMode},switch from reading mode to interaction mode|switch from {readingMode} to {interactionMode},
positionFocusedItemMenu1,2,"Position of the focused item in the menu, '1', is conveyed","convey position of the focused item in the menu, '1'",aria-posinset
positionFocusedItemMenu2,2,"Position of the focused item in the menu, '2', is conveyed","convey position of the focused item in the menu, '2'",aria-posinset
positionFocusedItemMenu6,2,"Position of the focused item in the menu, '6', is conveyed","convey position of the focused item in the menu, '4'",aria-posinset
39 changes: 0 additions & 39 deletions tests/menu-button-navigation/data/commands.csv

This file was deleted.

32 changes: 32 additions & 0 deletions tests/menu-button-navigation/data/jaws-commands.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
testId,command,settings,assertionExceptions,presentationNumber
navForwardsToMenuButton,b,virtualCursor,,1
navForwardsToMenuButton,f,virtualCursor,,1.1
navForwardsToMenuButton,tab,virtualCursor,2:interactionModeEnabled,1.2
navForwardsToMenuButton,down,virtualCursor,,1.3
navBackToMenuButton,shift+b,virtualCursor,,2
navBackToMenuButton,shift+f,virtualCursor,,2.1
navBackToMenuButton,shift+tab,virtualCursor,2:interactionModeEnabled,2.2
navBackToMenuButton,up,virtualCursor,,2.3
navForwardsToMenuButton,tab,pcCursor,,3
navBackToMenuButton,shift+tab,pcCursor,,4
reqInfoAboutMenuButton,ins+tab,virtualCursor,,7
reqInfoAboutMenuButton,ins+up,virtualCursor,,7.1
reqInfoAboutMenuButton,ins+tab,pcCursor,,8
reqInfoAboutMenuButton,ins+up,pcCursor,,8.1
openMenu,space,virtualCursor,2:interactionModeEnabled,10
openMenu,enter,virtualCursor,2:interactionModeEnabled,10.1
openMenu,space,pcCursor,,11
openMenu,enter,pcCursor,,11.1
openMenu,down,pcCursor,,11.2
openMenuToLastItem,up,pcCursor,,13
reqInfoAboutMenuItem,ins+tab,virtualCursor,,15
reqInfoAboutMenuItem,ins+up,virtualCursor,3:positionFocusedItemMenu1 3:numberItemsMenu6 0:nameMenuActions 0:roleMenu,15.1
reqInfoAboutMenuItem,ins+tab,pcCursor,,15.2
reqInfoAboutMenuItem,ins+up,pcCursor,3:positionFocusedItemMenu1 3:numberItemsMenu6 0:nameMenuActions 0:roleMenu,15.3
navToFirstItemMenu,home,pcCursor,,17
navToFirstItemMenu,down,pcCursor,,17.1
navToLastItemMenu,end,pcCursor,,19
navToLastItemMenu,up,pcCursor,,19.1
navToItemMenuByTypingCharacter,w,pcCursor,,21
activateMenuItem,enter,pcCursor,,23
closeMenu,esc,pcCursor,,25
32 changes: 32 additions & 0 deletions tests/menu-button-navigation/data/nvda-commands.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
testId,command,settings,assertionExceptions,presentationNumber
navForwardsToMenuButton,b,browseMode,,1
navForwardsToMenuButton,f,browseMode,,1.1
navForwardsToMenuButton,tab,browseMode,2:interactionModeEnabled,1.2
navForwardsToMenuButton,down,browseMode,,1.3
navBackToMenuButton,shift+b,browseMode,,2
navBackToMenuButton,shift+f,browseMode,,2.1
navBackToMenuButton,shift+tab,browseMode,2:interactionModeEnabled,2.2
navBackToMenuButton,up,browseMode,,2.3
navForwardsToMenuButton,tab,focusMode,,3
navBackToMenuButton,shift+tab,focusMode,,4
reqInfoAboutMenuButton,ins+tab,browseMode,,7
reqInfoAboutMenuButton,ins+up,browseMode,,7.1
reqInfoAboutMenuButton,ins+tab,focusMode,,8
reqInfoAboutMenuButton,ins+up,focusMode,,8.1
openMenu,space,browseMode,2:interactionModeEnabled,10
openMenu,enter,browseMode,2:interactionModeEnabled,10.1
openMenu,space,focusMode,,11
openMenu,enter,focusMode,,11.1
openMenu,down,focusMode,,11.2
openMenuToLastItem,up,focusMode,,13
reqInfoAboutMenuItem,ins+tab,browseMode,,15
reqInfoAboutMenuItem,ins+up,browseMode,3:positionFocusedItemMenu1 3:numberItemsMenu6 0:nameMenuActions 0:roleMenu,15.1
reqInfoAboutMenuItem,ins+tab,focusMode,,15.2
reqInfoAboutMenuItem,ins+up,focusMode,3:positionFocusedItemMenu1 3:numberItemsMenu6 0:nameMenuActions 0:roleMenu,15.3
navToFirstItemMenu,home,focusMode,,17
navToFirstItemMenu,down,focusMode,,17.1
navToLastItemMenu,end,focusMode,,19
navToLastItemMenu,up,focusMode,,19.1
navToItemMenuByTypingCharacter,w,focusMode,,21
activateMenuItem,enter,focusMode,,23
closeMenu,esc,focusMode,,25
30 changes: 16 additions & 14 deletions tests/menu-button-navigation/data/references.csv
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
refId,value
author,Isabel Del Castillo
title,Navigation Menu Button
authorEmail,[email protected]
reference,reference/2022-4-12_14147/menu-button-links.html
designPattern,https://w3c.github.io/aria-practices/#menubutton
example,https://w3c.github.io/aria-practices/examples/menu-button/menu-button-links.html
menu,https://w3c.github.io/aria/#menu
menuitem,https://w3c.github.io/aria/#menuitem
none,https://w3c.github.io/aria/#none
aria-haspopup,https://w3c.github.io/aria/#aria-haspopup
aria-controls,https://w3c.github.io/aria/#aria-controls
aria-labelledby,https://w3c.github.io/aria/#aria-labelledby
aria-expanded,https://w3c.github.io/aria/#aria-expanded
refId,type,value,linkText
author,metadata,Isabel Del Castillo,
authorEmail,metadata,[email protected],
title,metadata,Navigation Menu Button,
reference,metadata,reference/2024-8-12_123937/menu-button-links.html,Test Case Page for Navigation Menu Button
designPattern,metadata,https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/,APG Pattern: Menu Button
example,metadata,https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-links/,APG Example: Actions Menu Button Using
menu,aria,menu,menu
menuitem,aria,menuitem,menuitem
aria-haspopup,aria,aria-haspopup,aria-haspopup
aria-controls,aria,aria-controls,aria-controls
aria-labelledby,aria,aria-labelledby,aria-labelledby
aria-expanded,aria,aria-expanded,aria-expanded
aria-posinset,aria,aria-posinset,aria-posinset
aria-setsize,aria,aria-setsize,aria-setsize
button,htmlAam,button,button
6 changes: 6 additions & 0 deletions tests/menu-button-navigation/data/scripts.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
setupScript,setupScriptDescription
openMenuAndSetFocusToFirstItem,"opens the menu, and sets focus on 'W3C Home Page'"
openMenuAndSetFocusToLastItem,"opens the menu, and sets focus on 'Accessible Name and Description'"
setFocusAfterMenuButton,sets focus on a link after the menu button
setFocusBeforeMenuButton,sets focus on a link before the menu button
setFocusOnMenuButton,sets focus on the menu button
Loading

0 comments on commit bab79e2

Please sign in to comment.