Skip to content
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

Merged
merged 19 commits into from
Jan 28, 2021

Conversation

jscholes
Copy link
Contributor

@jscholes jscholes commented Dec 17, 2020

Preview Tests

Resolves #348

@jscholes jscholes marked this pull request as ready for review December 17, 2020 23:23
@jscholes jscholes requested a review from IsaDC December 17, 2020 23:24
@jongund jongund self-requested a review January 14, 2021 20:49
@jongund
Copy link
Contributor

jongund commented Jan 20, 2021

For test "Testing task: Navigate to the end of a modal dialog in reading mode"
The keyboard shortcut for JAWS to move to last form filed should change from control+end to insert+control+end

@jscholes
Copy link
Contributor Author

@jongund

For test "Testing task: Navigate to the end of a modal dialog in reading mode"
The keyboard shortcut for JAWS to move to last form filed should change from control+end to insert+control+end

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.

@mcking65
Copy link
Contributor

@jongund commented:

For test "Testing task: Navigate to the end of a modal dialog in reading mode"
The keyboard shortcut for JAWS to move to last form filed should change from control+end to insert+control+end

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.

@mcking65
Copy link
Contributor

mcking65 commented Jan 27, 2021

I think we need a better way of testing if NVDA is in browse mode rather than pressing escape. Our current instruction is:

  1. Insure NVDA is in browse mode by pressing Escape. Note: This command has no effect if NVDA is already in browse mode.

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.

Copy link
Contributor

@mcking65 mcking65 left a 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

@jscholes
Copy link
Contributor Author

jscholes commented Jan 27, 2021

@mcking65 Thanks, good catch. Fixed in ceeb5f6.

@jongund jongund self-requested a review January 27, 2021 22:18
Copy link
Contributor

@jongund jongund left a 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.

@jscholes
Copy link
Contributor Author

@jongund

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.

Copy link
Contributor

@mcking65 mcking65 left a 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!

@mcking65 mcking65 merged commit bdaa2ae into master Jan 28, 2021
@mcking65 mcking65 deleted the tests/modal-dialog branch January 28, 2021 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create tests for APG design pattern example: Modal Dialog
4 participants