You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.
increased test flakiness as the selenium grid session is terminated and a new request is made for each test describe block.
This global hook also enabled tests to be written poorly because the refresh will automatically clean up the current page's state, when tests should be working through a workflow, not a single page's state. IF a refresh is needed (which should be infrequent) it should be manually triggered by the test itself.
Here is a video showing the a test run using the current configuration and then a test run that has removed this configuration: https://cl.ly/7a7d955aaa8e.
Removing this is non-passive and would break tests....An option could be to add a process.env hook for now to toggle this global hook. This be used by people if they would like to start writing smarter, faster tests!
Feature Request
Description
Webdriver tests are slower 🐌than they should be because our global before hook performs a
browser.refresh()
whichdescribe
block.This global hook also enabled tests to be written poorly because the refresh will automatically clean up the current page's state, when tests should be working through a workflow, not a single page's state. IF a refresh is needed (which should be infrequent) it should be manually triggered by the test itself.
Here is a video showing the a test run using the current configuration and then a test run that has removed this configuration: https://cl.ly/7a7d955aaa8e.
Removing this is non-passive and would break tests....An option could be to add a process.env hook for now to toggle this global hook. This be used by people if they would like to start writing smarter, faster tests!
The text was updated successfully, but these errors were encountered: