This is an example for Cypress issue 14405.
Cypress tests can fail when running them with a minimized test runner window.
- Install the project with
npm install
. - Run
npm start
to start the web server and wait until it is running. - Run
npx cypress open
to start Cypress. - Choose "Chrome 87" as test browser.
- Run the integration spec.
- Wait about 10s until the test passes.
- Run the integration spec again, but this time immediately minimize the test runner window.
- Again, wait about 15s while the test runner is running minimized.
- Maximize the test runner again and notice that there is a CypressError on step 10:
"Timed out retrying after 4050ms:
cy.click()
failed because the submit button is not visible."
If you cannot reproduce it, make sure you minimize the window early enough and then wait until the test starts "in the dark", don't maximize the window too early.