Skip to content
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: ensure we have marked things as stable prior to after/afterEach hooks running #30536

Merged
merged 10 commits into from
Nov 4, 2024

Conversation

ryanthemanuel
Copy link
Collaborator

@ryanthemanuel ryanthemanuel commented Nov 4, 2024

Additional details

When we have a pageLoadTimeout, the Cypress runner can be left in an unstable state. Cypress waits to execute further commands until we are in a stable state. As a result, if we have after/afterEach hooks that run after the failure, they have the potential to hang indefinitely. This PR fixes the issue by ensuring that we have stability prior to moving to the after/afterEach hooks.

Steps to test

I added a driver test for this.

How has the user experience changed?

PR Tasks

@ryanthemanuel ryanthemanuel self-assigned this Nov 4, 2024
cli/CHANGELOG.md Outdated Show resolved Hide resolved
@ryanthemanuel ryanthemanuel changed the title fix: ensure we have marked things as stable prior to after/afterEach blocks running fix: ensure we have marked things as stable prior to after/afterEach hooks running Nov 4, 2024
cli/CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Matt Schile <[email protected]>
Copy link

cypress bot commented Nov 4, 2024

cypress    Run #58125

Run Properties:  status check passed Passed #58125  •  git commit a856e5ced6: allow failure
Project cypress
Branch Review ryanm/fix/issue-with-stability
Run status status check passed Passed #58125
Run duration 23m 51s
Commit git commit a856e5ced6: allow failure
Committer Ryan Manuel
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 6
Tests that did not run due to a developer annotating a test with .skip  Pending 1326
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 29400
View all changes introduced in this branch ↗︎
UI Coverage  46.24%
  Untested elements 188  
  Tested elements 166  
Accessibility  92.55%
  Failed rules  3 critical   8 serious   2 moderate   2 minor
  Failed elements 906  

@ryanthemanuel ryanthemanuel merged commit a8a3cb9 into develop Nov 4, 2024
83 of 85 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/fix/issue-with-stability branch November 4, 2024 21:19
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 5, 2024

Released in 13.15.2.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.15.2, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants