You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a series of [testing scripts](https://en.wikipedia.org/wiki/Test_script). designed to mimic common manual accessibility tests in an automated testing setting for JupyterLab. They currently reference [WCAG 2.1](https://www.w3.org/TR/WCAG21/), but ideally will be updated for future versions of WCAG or to align with [ACT-rules](https://act-rules.github.io/rules/).
3
+
This is a series of [testing scripts](https://en.wikipedia.org/wiki/Test_script).
4
+
Designed to mimic common manual accessibility tests in an automated testing setting for JupyterLab.
5
+
They currently reference [WCAG 2.1](https://www.w3.org/TR/WCAG21/), but ideally will be updated for future versions of WCAG or to align with [ACT-rules](https://act-rules.github.io/rules/).
4
6
5
7
Those unfamiliar with manual testing techniques may also find these scripts helpful in understanding what to do and observe in a manual testing setting as well.
6
8
7
-
Different scripts apply to different levels of JupyterLab (ie. the whole application versus a single extension). The ideal implementation of these tests is noted in their `Proposed JupyterLab success criteria` section.
9
+
Different scripts apply to different levels of JupyterLab (i.e. the whole application versus a single extension).
10
+
The ideal implementation of these tests is noted in their `Proposed JupyterLab success criteria` section.
8
11
9
12
If you are writing a testing script, please review the [Testing Script Template](testing-script-template.md) for more information.
10
13
@@ -20,17 +23,17 @@ This can be tested on the whole JupyterLab application.
| 1. Open default JupyterLab. | JupyterLab opens with unmodified workspace. |
26
-
| 2. Set viewport orientation to portrait (And/or mobile viewport?). | JupyterLab accepts the orientation change and doesn't error out. |
27
-
| 3. Check menu bar is in expected location. | Menu bar is at the top of the page and have all menu items visible (currently it has a scroll bar). |
28
-
| 4. Check left side bar is in expected location. | Left side bar is the leftmost part of the viewport . It stretches from the menu bar to status bar. All icons are visible.|
29
-
| 5. Check document area is in expected location. | Document area is the center and majority of the viewport. |
30
-
| 6. Check document area toolbar is in expected location. | The document area toolbar is at the top of the document area. All items are visible (currently it has a scroll bar). |
31
-
| 7. Check right side bar is in expected location. | Right side bar is the rightmost part of the viewport. It stretches from the menu bar to status bar. All icons are visible. (Right now, I believe this side bar is not able to be accessed in this mode.) |
32
-
| 8. Check status bar is in expected location. | The status bar is at the bottom of the page. All information is visible. |
33
-
| 9. Success if all main regions are in expected location. ||
| 1. Open default JupyterLab. | JupyterLab opens with unmodified workspace. |
29
+
| 2. Set viewport orientation to portrait (And/or mobile viewport?). | JupyterLab accepts the orientation change and doesn't error out. |
30
+
| 3. Check menu bar is in expected location. | Menu bar is at the top of the page and have all menu items visible (currently it has a scroll bar). |
31
+
| 4. Check left sidebar is in expected location. | Left sidebar is the leftmost part of the viewport . It stretches from the menu bar to status bar. All icons are visible. |
32
+
| 5. Check document area is in expected location. | Document area is the center and majority of the viewport. |
33
+
| 6. Check document area toolbar is in expected location. | The document area toolbar is at the top of the document area. All items are visible (currently it has a scroll bar). |
34
+
| 7. Check right sidebar is in expected location. | Right sidebar is the rightmost part of the viewport. It stretches from the menu bar to status bar. All icons are visible. (Right now, I believe this sidebar is not able to be accessed in this mode.) |
35
+
| 8. Check status bar is in expected location. | The status bar is at the bottom of the page. All information is visible. |
36
+
| 9. Success if all main regions are in expected location. ||
34
37
35
38
### [2.1.2 No keyboard trap](https://www.w3.org/WAI/WCAG21/quickref/#no-keyboard-trap)
36
39
@@ -42,15 +45,15 @@ This can be tested on multiple regions of JupyterLab. For example, this script w
| 1. Open default JupyterLab. | JupyterLab opens with unmodified workspace.|
48
-
| 2. Start focus at top of tree. | Focus goes to JupyterLab tab, may hit skip link.|
49
-
| 3. Tab into menu bar. | Focus goes to menu bar (whole).|
50
-
| 4. Open file menu. | Focus goes to File menu (within menu bar). Menu bar opens full list of menu items.|
51
-
| 5. Close file menu. | Focus stays on File menu, but menu bar is closed.|
52
-
| 6. Tab out of menu bar. | Focus moves from File menu, to other menu items until it leaves the region. Focus will move the left side bar/file browser. |
53
-
| 7. Success if focus switches to side bar/file browser. ||
| 1. Open default JupyterLab. | JupyterLab opens with unmodified workspace. |
51
+
| 2. Start focus at top of tree. | Focus goes to JupyterLab tab, may hit skip link. |
52
+
| 3. Tab into menu bar. | Focus goes to menu bar (whole). |
53
+
| 4. Open file menu. | Focus goes to File menu (within menu bar). Menu bar opens full list of menu items. |
54
+
| 5. Close file menu. | Focus stays on File menu, but menu bar is closed. |
55
+
| 6. Tab out of menu bar. | Focus moves from File menu, to other menu items until it leaves the region. Focus will move the left sidebar/file browser. |
56
+
| 7. Success if focus switches to sidebar/file browser. ||
| 1. Open default JupyterLab. | JupyterLab opens with unmodified workspace. |
78
-
| 2. Tab to focus menu bar. | Tab until focus is on the menu bar. (Will this run into the skip link?) |
79
-
| 3. Tab through major regions as needed (see above section). | Tab to move focus through left side bar, inside left side bar, top of document area, document area, right side bar, and inside right side bar. |
80
-
| 4. Tab to focus status bar | Focus moves to status bar. |
81
-
| 5. Success if tab brings focus to status bar. ||
| 1. Open default JupyterLab. | JupyterLab opens with unmodified workspace. |
81
+
| 2. Tab to focus menu bar. | Tab until focus is on the menu bar. (Will this run into the skip link?) |
82
+
| 3. Tab through major regions as needed (see above section). | Tab to move focus through left sidebar, inside left sidebar, top of document area, document area, right sidebar, and inside right sidebar. |
83
+
| 4. Tab to focus status bar | Focus moves to status bar. |
84
+
| 5. Success if tab brings focus to status bar. ||
In JupyterLab, a single task can be completed using mouse, keyboard, and touch screen inputs. This works even when completing a single, continuous task.
88
91
89
-
This can be tested on multiple regions of JupyterLab. For example, this script will test that JupyterLab can open a new notebook from the launcher with mouse, keyboard, and touch screen inputs.
92
+
This can be tested on multiple regions of JupyterLab. For example, this script will test that JupyterLab can open a new notebook from the launcher with mouse,
93
+
keyboard, and touch screen inputs.
90
94
91
95
#### Proposed testing script
92
96
@@ -95,5 +99,5 @@ This can be tested on multiple regions of JupyterLab. For example, this script w
95
99
| 1. Open default JupyterLab | JupyterLab opens with unmodified workspace. |
96
100
| 2. Open the file menu with a mouse click. | File menu opens and full list of menu items appears. |
97
101
| 3. Navigate to menu item New Launcher with arrow keys. | Focus moves through the File menu list items until it reaches the New Launcher item. |
98
-
| 4. Use touch screen input to create new Notebook from Launcher. | The New Notebook from Launcher is selected and the command is initiated.|
102
+
| 4. Use touch screen input to create new Notebook from Launcher. | The New Notebook from Launcher is selected, and the command is initiated. |
0 commit comments