Ensure setup/teardown for wdspec tests cleans all the bidi-specific state
Categories
(Remote Protocol :: WebDriver BiDi, task, P2)
Tracking
(Not tracked)
People
(Reporter: jdescottes, Unassigned)
Details
(Whiteboard: [webdriver:backlog])
We have been adding small cleanups in individual tests so, for instance see the thread at https://phabricator.services.mozilla.com/D132845#inline-732885
Instead the test harness should define setup / teardown steps which ensure a clean state for each test.
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Comment 1•3 years ago
|
||
Todo:
- unsubscribe from all BiDi events in case we reuse the same session
- ideally use a new tab for each test
James: would it make sense to add a command to unsubscribe from all events in the spec or should this just be an internal command?
Comment 2•3 years ago
|
||
Do you actually want a command that just unsubscribes from events, or one that unsets all session state without ending the session? For example, what should happen to the object cache, or input state (once we have that). Does a command to reset all state make sense if ending and starting a session doesn't require restarting the browser? It seems like they're mostly equivalent?
Updated•3 years ago
|
Description
•