-
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: allow more than 20 sessions to be created in a single test #24379
fix: allow more than 20 sessions to be created in a single test #24379
Conversation
Thanks for taking the time to open a PR!
|
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
…n-checking-redirect-limits
@@ -765,7 +765,6 @@ describe('src/cy/commands/navigation', () => { | |||
}) | |||
|
|||
cy.visit('fixtures/redirection-loop-a.html') | |||
cy.get('div').should('contain', 'this should fail?') |
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.
Previously removing this line would allow the test to not throw the failure. I made a couple of changes below to now not require this line.
@mjhenkes I think this is officially the longest branch name I've ever seen. |
@@ -315,6 +315,11 @@ const stabilityChanged = async (Cypress, state, config, stable) => { | |||
const onPageLoadErr = (err) => { | |||
state('onPageLoadErr', null) | |||
|
|||
// If the error thrown is a cypress error, return it instead of throwing a cross origin error. | |||
if ($errUtils.isCypressErr(err)) { |
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.
I wonder if this will fix the error I've been seeing in my branch! Hoping it will 😄
Co-authored-by: Bill Glesias <bglesias@gmail.com>
…n-checking-redirect-limits
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
User facing changelog
Additional details
Visiting about blank more than 20 times when creating a session would trigger the redirect warning logic.
Steps to test
See the added test.
How has the user experience changed?
Tests with more than 20 sessions no longer fail.
PR Tasks
cypress-documentation
?type definitions
?