-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create tests for APG design pattern example: Modal Dialog #361
Conversation
…ome followed by Down Arrow to keys.mjs
…l as 'Accessibility Features', 'Keyboard Support', 'Role, Property, State, and Tabindex Attributes' and source code sections
… for use in setup scripts More details: 4357a2e
…her than button clicks and manual focus changes
For test "Testing task: Navigate to the end of a modal dialog in reading mode" |
The aim of this test is just to move the reading/virtual cursor to the end of the dialog itself, and the assertions relate to the last thing in the dialog that users will encounter. Here, it's the Cancel button. The aim isn't specifically to jump to the last form field or other control type. |
@jongund commented:
Agree with @jscholes. Another way to think of this is what happens if JAWS has a but and doesn't respect the boundary of the dialog and moves the reading cursor outside of it. If we use the command to move to last form field, the reading cursor will move to the cancel button and you would not detect the failure to respect dialog boundary. However, if you use ctrl+end, the reading cursor would move outside the dialog to the end of main content. The test needs to be able to capture that kind of bug. |
I think we need a better way of testing if NVDA is in browse mode rather than pressing escape. Our current instruction is:
The note is not correct if the focus is in a widget that processes escape, such as a dialog or menu. I'm not letting this stop merge of this PR. But, I do think we need to address this somehow so I've opened #382. Side note: "Ensure" is misspelled in the instruction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This plan is excellent!! I found only one copy/paste type of error.
Mistake in tester instructions in:
- Test 11: Navigate to the last focusable element in a modal dialog
- Instructions say: 2. With focus on the last focusable element inside a modal dialog, navigate to the first focusable element in the same dialog. using the following commands:
- Should say opposite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Matt test 11 seems to need to have some attention. When you open the test page focus is on the second textbox and it seems like it should be on the first textbox.
I can't reproduce this specifically, but the setup script code is a bit flaky when executed automatically. As covered in #369 and #370 (comment), I believe that we would prefer testers to run the setup script(s) automatically via a button provided on the page instead, to allow the browser and screen reader to settle first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jscholes thanks for fast fix!
Preview Tests
Resolves #348