Skip to content

Commit 0063eec

Browse files
IsaDCjscholes
andauthored
Create updated tests for APG design pattern example: Modal Dialog (#681)
* Update APG example and references.csv file * Generate .html source files with scripts automatically * Remove previous APG example * Update commands.csv * Update tests.csv * Example: remove unneeded CSS/JS references and update page title * Example: remove 'Related Links' nav and similar example links, as well as 'Accessibility Features', 'Keyboard Support', 'Role, Property, State, and Tabindex Attributes' and source code sections and footer nav * Generate .html source files with scripts automatically * Update JS path in example * Remove unneeded images. * Generate .html source files with scripts automatically * Add element IDs in example * Generate .html source files with scripts automatically Co-authored-by: IsaDC <IsaDC@users.noreply.github.com> Co-authored-by: James Scholes <james@jamesscholes.com> Co-authored-by: jscholes <jscholes@users.noreply.github.com>
1 parent 62ed987 commit 0063eec

13 files changed

+331
-313
lines changed
Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
testId,task,mode,at,commandA,commandB,commandC,commandD,commandE,commandF
2-
1,open modal dialog,reading,JAWS,SPACE,ENTER,,,,
3-
1,open modal dialog,reading,NVDA,SPACE,ENTER,,,,
4-
2,open modal dialog,interaction,JAWS,SPACE,ENTER,,,,
5-
2,open modal dialog,interaction,NVDA,SPACE,ENTER,,,,
6-
3,open modal dialog,interaction,voiceover_macos,CTRL_OPT_SPACE,SPACE,ENTER,,,
7-
4,close modal dialog,reading,JAWS,ESC ,,,,,
8-
4,close modal dialog,reading,NVDA,ESC ,,,,,
9-
5,close modal dialog,interaction,JAWS,ESC ,,,,,
10-
5,close modal dialog,interaction,NVDA,ESC ,,,,,
11-
6,close modal dialog,Interaction,voiceover_macos,ESC ,,,,,
12-
7,close modal dialog using button,reading,JAWS,SPACE,ENTER,,,,
13-
7,close modal dialog using button,reading,NVDA,SPACE,ENTER,,,,
14-
8,close modal dialog using button,interaction,JAWS,SPACE,ENTER,,,,
15-
8,close modal dialog using button,interaction,NVDA,SPACE,ENTER,,,,
16-
9,close modal dialog using button,interaction,voiceover_macos,CTRL_OPT_SPACE,SPACE,ENTER,,,
17-
10,navigate to last focusable element in modal dialog ,interaction,JAWS,SHIFT_TAB,,,,,
18-
10,navigate to last focusable element in modal dialog ,interaction,NVDA,SHIFT_TAB,,,,,
19-
11,navigate to last focusable element in modal dialog,interaction,voiceover_macos,SHIFT_TAB,,,,,
20-
12,navigate to first focusable element in modal dialog,interaction,JAWS,TAB,,,,,
21-
12,navigate to first focusable element in modal dialog,interaction,NVDA,TAB,,,,,
22-
13,navigate to first focusable element in modal dialog,interaction,voiceover_macos,TAB,,,,,
23-
14,navigate to beginning of modal dialog,reading,JAWS,CTRL_HOME_THEN_DOWN,,,,,
24-
14,navigate to beginning of modal dialog,reading,NVDA,CTRL_HOME,,,,,
25-
15,navigate to beginning of modal dialog,interaction,voiceover_macos,CTRL_OPT_HOME,,,,,
26-
16,navigate to end of modal dialog,reading,JAWS,CTRL_END,,,,,
27-
16,navigate to end of modal dialog,reading,NVDA,CTRL_END,,,,,
28-
17,navigate to end of modal dialog,interaction,voiceover_macos,CTRL_OPT_END,,,,,
29-
18,open nested modal dialog,reading,JAWS,SPACE,ENTER,,,,
30-
18,open nested modal dialog,reading,NVDA,SPACE,ENTER,,,,
31-
19,open nested modal dialog,interaction,JAWS,SPACE,ENTER,,,,
32-
19,open nested modal dialog,interaction,NVDA,SPACE,ENTER,,,,
33-
20,open nested modal dialog,interaction,voiceover_macos,CTRL_OPT_SPACE,SPACE,ENTER,,,
34-
21,close nested modal dialog,reading,JAWS,ESC,,,,,
35-
21,close nested modal dialog,reading,NVDA,ESC,,,,,
36-
22,close nested modal dialog,interaction,JAWS,ESC,,,,,
37-
22,close nested modal dialog,interaction,NVDA,ESC,,,,,
38-
23,close nested modal dialog,interaction,voiceover_macos,ESC,,,,,
39-
24,close nested modal dialog using button,reading,JAWS,SPACE,ENTER,,,,
40-
24,close nested modal dialog using button,reading,NVDA,SPACE,ENTER,,,,
41-
25,close nested modal dialog using button,interaction,JAWS,SPACE,ENTER,,,,
42-
25,close nested modal dialog using button,interaction,NVDA,SPACE,ENTER,,,,
43-
26,close nested modal dialog using button,interaction,voiceover_macos,CTRL_OPT_SPACE,SPACE,ENTER,,,
44-
27,open nested modal dialog using link,reading,JAWS,ENTER,,,,,
45-
27,open nested modal dialog using link,reading,NVDA,ENTER,,,,,
46-
28,open nested modal dialog using link,interaction,JAWS,ENTER,,,,,
47-
28,open nested modal dialog using link,interaction,NVDA,ENTER,,,,,
48-
29,open nested modal dialog using link,interaction,voiceover_macos,CTRL_OPT_SPACE,ENTER,,,,
1+
testId,task,mode,at,commandA,commandB,commandC
2+
1,Open a Modal Dialog,READING,JAWS,SPACE,ENTER,
3+
1,Open a Modal Dialog,READING,NVDA,SPACE,ENTER,
4+
2,Open a Modal Dialog,INTERACTION,JAWS,SPACE,ENTER,
5+
2,Open a Modal Dialog,INTERACTION,NVDA,SPACE,ENTER,
6+
3,Open a Modal Dialog,INTERACTION,VOICEOVER_MACOS,CTRL_OPT_SPACE,SPACE,ENTER
7+
4,Close a modal dialog,READING,JAWS,ESC,,
8+
4,Close a modal dialog,READING,NVDA,ESC,,
9+
5,Close a modal dialog,INTERACTION,JAWS,ESC,,
10+
5,Close a modal dialog,INTERACTION,NVDA,ESC,,
11+
6,Close a modal dialog,INTERACTION,VOICEOVER_MACOS,ESC,,
12+
7,Close a modal dialog using a button ,READING,JAWS,SPACE,ENTER,
13+
7,Close a modal dialog using a button ,READING,NVDA,SPACE,ENTER,
14+
8,Close a modal dialog using a button ,INTERACTION,JAWS,SPACE,ENTER,
15+
8,Close a modal dialog using a button ,INTERACTION,NVDA,SPACE,ENTER,
16+
9,Close a modal dialog using a button ,INTERACTION,VOICEOVER_MACOS,CTRL_OPT_SPACE,SPACE,ENTER
17+
10,Navigate to the last focusable element in a modal dialog,INTERACTION,JAWS,SHIFT_TAB,,
18+
10,Navigate to the last focusable element in a modal dialog,INTERACTION,NVDA,SHIFT_TAB,,
19+
11,Navigate to the last focusable element in a modal dialog,INTERACTION,VOICEOVER_MACOS,SHIFT_TAB,,
20+
12,Navigate to the first focusable element in a modal dialog,INTERACTION,JAWS,TAB,,
21+
12,Navigate to the first focusable element in a modal dialog,INTERACTION,NVDA,TAB,,
22+
13,Navigate to the first focusable element in a modal dialog,INTERACTION,VOICEOVER_MACOS,TAB,,
23+
14,Navigate to the beginning of a modal dialog,READING,JAWS,"CTRL_HOME,DOWN",,
24+
14,Navigate to the beginning of a modal dialog,READING,NVDA,CTRL_HOME,,
25+
15,Navigate to the beginning of a modal dialog,INTERACTION,VOICEOVER_MACOS,CTRL_OPT_HOME,,
26+
16,Navigate to the end of a modal dialog,READING,JAWS,CTRL_END,,
27+
16,Navigate to the end of a modal dialog,READING,NVDA,CTRL_END,,
28+
17,Navigate to the end of a modal dialog,INTERACTION,VOICEOVER_MACOS,CTRL_OPT_END,,
29+
18,Open a nested modal dialog ,READING,JAWS,SPACE,ENTER,
30+
18,Open a nested modal dialog ,READING,NVDA,SPACE,ENTER,
31+
19,Open a nested modal dialog ,INTERACTION,JAWS,SPACE,ENTER,
32+
19,Open a nested modal dialog ,INTERACTION,NVDA,SPACE,ENTER,
33+
20,Open a nested modal dialog ,INTERACTION,VOICEOVER_MACOS,CTRL_OPT_SPACE,SPACE,ENTER
34+
21,Close a nested modal dialog,READING,JAWS,ESC,,
35+
21,Close a nested modal dialog,READING,NVDA,ESC,,
36+
22,Close a nested modal dialog,INTERACTION,JAWS,ESC,,
37+
22,Close a nested modal dialog,INTERACTION,NVDA,ESC,,
38+
23,Close a nested modal dialog,INTERACTION,VOICEOVER_MACOS,ESC,,
39+
24,Close a nested modal dialog using a button,READING,JAWS,SPACE,ENTER,
40+
24,Close a nested modal dialog using a button,READING,NVDA,SPACE,ENTER,
41+
25,Close a nested modal dialog using a button,INTERACTION,JAWS,SPACE,ENTER,
42+
25,Close a nested modal dialog using a button,INTERACTION,NVDA,SPACE,ENTER,
43+
26,Close a nested modal dialog using a button,INTERACTION,VOICEOVER_MACOS,CTRL_OPT_SPACE,SPACE,ENTER
44+
27,Open a nested modal dialog using a link,READING,JAWS,ENTER,,
45+
27,Open a nested modal dialog using a link,READING,NVDA,ENTER,,
46+
28,Open a nested modal dialog using a link,INTERACTION,JAWS,ENTER,,
47+
28,Open a nested modal dialog using a link,INTERACTION,NVDA,ENTER,,
48+
29,Open a nested modal dialog using a link,INTERACTION,VOICEOVER_MACOS,CTRL_OPT_SPACE,ENTER,

tests/modal-dialog/data/references.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ refId,value
22
author,James Scholes
33
authorEmail,james@pac.bz
44
title,Modal Dialog Example
5-
reference,reference/2020-12-17_13353/dialog.html
5+
reference,reference/2022-4-7_15544/dialog.html
66
designPattern,https://w3c.github.io/aria-practices/#dialog_modal
77
example,https://w3c.github.io/aria-practices/examples/dialog-modal/dialog.html
88
dialog,https://w3c.github.io/aria/#dialog

0 commit comments

Comments
 (0)