-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support for command sequences in tests #363
Comments
This could be relevant to automation. I bet that using an array of commands would be easier to process from an automation perspective. |
Points of interest from the February 25, 2021 community group meeting:
Proposed technical solution:Allow for some sort of array syntax in
The above has two command sequences:
With brackets, it would look like:
Given that both examples need the quotes, the only difference is that the presence of an array/sequence is made a tad more explicit in the second one via the inclusion of brackets. Given that these files should be read by a machine most of the time, I'm not sure I'd even call this an advantage. |
I should note, we didn't get to discussing one of the points raised by this issue on the Feb 25 meeting:
|
I agree that we don't need the brackets. |
Some notes from the March 11, 2021 CG meeting: we don't need to test type-ahead-style functionality at this time. Testing a single key, e.g. to jump to an option in a listbox, is sufficient. This will be far easier to implement within the framework of automated testing than it will be to instruct human testers to press a series of keys in a very short window of time. |
PR: #438 |
Reopening based on the context in #537 (comment) and #537 (comment); it seems that for some reason the support for command sequences is not actually present despite PR #438. CC @sinabahram / @s3ththompson / @richnoah, and also @zcorpan who wrote the PR. |
Currently, the test format allows for multiple commands, but it is implied that these should be executed in isolation. For example, pressing F to find a checkbox, returning to a known point on the page and then pressing X to find the same control.
this isn't sufficient in some cases, and multiple commands are required in a sequence instead. Three categories that spring to mind are:
#1
, a JAWS tester will need to press T followed by Down Arrow to locate the table and move into the first cell.Note that for points
#1
and#2
, the intermediate output is needed for testers to be able to make a verdict about the assertions. For example after pressing T to find a table, testers should listen to the information about the table before pressing the next command to hear information about the first cell. But for point#3
, we generally only care about the speech output when the final destination is reached (e.g. the listbox option matching all typed characters).Currently, this can be hacked via an entry in keys.mjs, e.g.:
export const T_THEN_DOWN = "T followed by Down Arrow";
This has multiple downsides, including:
The text was updated successfully, but these errors were encountered: