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
Page load timeout will not stop the test if page is in redirection loop. The test may run forever. No log output is generated indicating what is happening.
The problem is obvious when looking at the UI but when this happens in headless mode in CI it may be extremely difficult to detect as the outcome may be just a long-running cypress process killed by CI.
We had a situation where tests completed successfully locally in headed mode and failed in CI. There was an oversight in test mocks and the application under test behaved differently in CI with drastically different performance constraints.
Desired behavior
Page load timeout should trigger and stop the test even when page redirects continuously.
Yah that's a good one. I'm not sure that it's the pageLoadTimeout so much as the commands attempting to find the DOM elements that should timeout. The cy.get('div') should fail regardless of the redirects.
The code for this is done in cypress-io/cypress#14643, but has yet to be released.
We'll update this issue and reference the changelog when it's released.
Current behavior
Page load timeout will not stop the test if page is in redirection loop. The test may run forever. No log output is generated indicating what is happening.
Video: https://github.com/henrikauppinen/cypress-redirect-loop/blob/main/cypress/videos/redirect-loop.spec.js.mp4
The problem is obvious when looking at the UI but when this happens in headless mode in CI it may be extremely difficult to detect as the outcome may be just a long-running cypress process killed by CI.
We had a situation where tests completed successfully locally in headed mode and failed in CI. There was an oversight in test mocks and the application under test behaved differently in CI with drastically different performance constraints.
Desired behavior
Page load timeout should trigger and stop the test even when page redirects continuously.
Test code to reproduce
https://github.com/henrikauppinen/cypress-redirect-loop
Versions
Confirmed with 5.4 until most recent 6.2.1 version.
The text was updated successfully, but these errors were encountered: