-
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: prevent navigating to about:blank #30864
Open
mschile
wants to merge
7
commits into
develop
Choose a base branch
from
mschile/about_blank_with_retry
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+5,847
−507
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cypress Run #59863
Run Properties:
|
Project |
cypress
|
Branch Review |
mschile/about_blank_with_retry
|
Run status |
Passed #59863
|
Run duration | 17m 42s |
Commit |
3609cc19d8: fix changelog
|
Committer | Matthew Schile |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
8
|
Pending |
1090
|
Skipped |
0
|
Passing |
26423
|
View all changes introduced in this branch ↗︎ |
UI Coverage
45.56%
|
|
---|---|
Untested elements |
191
|
Tested elements |
164
|
Accessibility
92.54%
|
|
---|---|
Failed rules |
3 critical
8 serious
2 moderate
2 minor
|
Failed elements |
888
|
AtofStryker
approved these changes
Jan 13, 2025
|
||
// there can only be one test in this file to ensure we are testing the scenario | ||
// where a test fails and the runner does not navigate to about:blank between retries | ||
it('test 1', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we give this a more descriptive name to what we are testing?
if (test.failedFromHookId && (test.hookName === 'before all')) { | ||
return null | ||
} | ||
|
||
// if this test hasn't been finalized, then we will be retry'ing it so just return this test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
// if this test hasn't been finalized, then we will be retry'ing it so just return this test | |
// if this test hasn't been finalized, then we will be retrying it so just return this test |
cacieprins
approved these changes
Jan 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 ofisLastTestThatWillRunInSuite
that was not accounting for retries. In order to resolve this issue, we are now accounting for retries by checkingtest.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 toabout:blank
in-between the retries.How has the user experience changed?
Before:
After:
PR Tasks
cypress-documentation
?type definitions
?