-
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
How to reset state within a test #358
Comments
@zcorpan Thanks for opening this. I think expecting human testers to infer the right way to go about testing multiple commands is fair when we're dealing with navigation to a specific element, or with simpler tests. My concern is that as the patterns under test become more complex, the way testers will have to reset becomes more challenging. For example:
I know there is some school of thought that setup script usage should be limited, and that we should trust human testers to put up some of the scaffolding themselves. But for automation, those steps will need to be scripted regardless, so I'm in favour of setup scripts assisting human testers to the greatest feasible degree. There are multiple options that come to mind:
The above are just some initial ideas. I'm sure there are additional aspects to consider. |
The test could have a "reset" button, which could execute JS if needed, or otherwise be a starting position between commands. |
In the CG call yesterday there was general consensus that a button in each test seemed like a good idea, and it could replace the current "setup scripts". Minutes: https://www.w3.org/2020/12/17-aria-at-minutes.html#item05 |
In #349 (comment) I asked:
This applies both when testing manually and in an automated setup.
@jscholes replied that it may be better to reload the test.
I think we haven't come to a conclusion on this, so opening a dedicated issue.
The text was updated successfully, but these errors were encountered: