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: prevent navigating to about:blank #30864

Merged
merged 12 commits into from
Jan 17, 2025

Conversation

mschile
Copy link
Contributor

@mschile mschile commented Jan 11, 2025

Additional details

If test isolation is disabled and the last test fails and then retries, we were incorrectly navigating to about:blank due to an incorrect calculation of isLastTestThatWillRunInSuite that was not accounting for retries. In order to resolve this issue, we are now accounting for retries by checking test.final.

Steps to test

Run a spec in run mode with test isolation off where the last test in the spec fails and then retries and verify we do not navigate to about:blank in-between the retries.

How has the user experience changed?

Before:
Screenshot 2025-01-10 at 5 47 50 PM

After:
Screenshot 2025-01-10 at 5 46 53 PM

PR Tasks

Copy link

cypress bot commented Jan 11, 2025

cypress    Run #59922

Run Properties:  status check passed Passed #59922  •  git commit 71d3165dae: Merge branch 'develop' into mschile/about_blank_with_retry
Project cypress
Branch Review mschile/about_blank_with_retry
Run status status check passed Passed #59922
Run duration 11m 17s
Commit git commit 71d3165dae: Merge branch 'develop' into mschile/about_blank_with_retry
Committer Jennifer Shehane
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 1
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 667
View all changes introduced in this branch ↗︎
UI Coverage  38.03%
  Untested elements 132  
  Tested elements 81  
Accessibility  92.03%
  Failed rules  3 critical   7 serious   1 moderate   1 minor
  Failed elements 538  

packages/driver/cypress/e2e/issues/28527.cy.ts Outdated Show resolved Hide resolved
packages/driver/src/cypress/runner.ts Outdated Show resolved Hide resolved
@jennifer-shehane jennifer-shehane merged commit e3a2843 into develop Jan 17, 2025
88 of 89 checks passed
@jennifer-shehane jennifer-shehane deleted the mschile/about_blank_with_retry branch January 17, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default blank page, this page was cleared by navigating to about:blank
4 participants