-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fix navigation_spec "page load" flaky test. #6030
Comments
Is this test specifically https://github.com/cypress-io/cypress/blob/develop/packages/driver/test/cypress/integration/commands/navigation_spec.coffee#L391:L391 stack trac3
|
I learned that it's related to the execution order of events and promises. But needs to research more about how to fix it. |
To pass this flaky test, 4 things should be done in the exact order below: These are made possible by When the flaky test fails, the steps 2 and 3 aren't done in 100ms for some reason (it might be because of the Chrome scheduler's scheduling.). I thought about using So, I came to the conclusion that it's impossible to fix this flakiness completely. It's more of a feature than a bug. However, I think there are some ways to suppress this problem.
For some reason, "page load" isn't flaky these days. Should we wait for #3968 and revisit later? |
@sainthkh I can't reproduce the flake locally. Can you link to a CI run that exhibits this behavior? |
Here it is: https://circleci.com/gh/cypress-io/cypress/221683#tests/containers/4. To forcefully reproduce it, change It'll always fail. |
ok, I believe this will fix it #6138 |
The code for this is done in cypress-io/cypress#6138, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
navigation_spec
does not log "page load" events
is really flaky.Desired behavior:
It should always pass.
Steps to reproduce: (app code and test code)
It fails a lot on PR.
Versions
develop.
The text was updated successfully, but these errors were encountered: