-
Notifications
You must be signed in to change notification settings - Fork 29
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 command sequences in at-commands.mjs #438
Conversation
@zcorpan Some questions:
|
Updated my previous comment; you did include a CSV example and I just didn't see it. |
OK. I think we should fix those tests. Is there an issue about this? If Current:
New:
No.
Yes. |
@zcorpan We discussed this on today's test writing CG meeting some questions/thoughts:
|
Yes.
We can do that in this PR. Should it also say "Down Arrow, twice" instead of "Down Arrow, then Down Arrow"?
OK.
Sure. |
The community group didn't discuss this aspect in detail, so we're happy to kick the can down the road on it for now. I don't want to speak to something on which we didn't reach consensus. |
OK. For now I changed |
@zcorpan Where are we on getting this merged? |
It can be merged when it's reviewed, which I think @mzgoddard will do. |
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.
Looks good to me.
I guess one non-blocker for this that kinds to mind after reading the change is, does the formatting seem good for commands with furtherInstructions
like:
[
"LEFT_AND_RIGHT",
"(with Smart Navigation on)"
]
from tests/checkbox/commands.json
?
After this change might that command be changed to this?
[
"LEFT,RIGHT",
"(with Smart Navigation on)"
]
and if so currently that'll put into the test instructions:
- Left Arrow (with Smart Navigation on), Right Arrow (with Smart Navigation on)
@mzgoddard Smart navigation won't be tested going forward, and should be removed from the older tests at some point. |
Thanks @mzgoddard! The |
Preview Tests
Fixes #363
This change supports the syntax proposed in #363 (comment)
without changing the structure of
commands.json
(the strings can contain commas), and without changing theCommandsAPI
used byaria-at-harness.mjs
. This is to not shake the foundation for e.g. #434, while still giving test authors the option to use command sequences.For example, given this in
test-01-navigate-to-unchecked-checkbox-reading.html
:the rendered test instructions are: