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: allow more than 20 sessions to be created in a single test #24379

Conversation

mjhenkes
Copy link
Member

  • Closes

User facing changelog

  • Cypress now allows more than 20 sessions to be created in a single test.

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

  • [ x ] Have tests been added/updated?
  • Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • Has a PR for user-facing changes been opened in cypress-documentation?
  • Have API changes been updated in the type definitions?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 25, 2022

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Oct 25, 2022



Test summary

4142 0 1103 0Flakiness 1


Run details

Project cypress
Status Passed
Commit 61be50e
Started Oct 26, 2022 1:18 PM
Ended Oct 26, 2022 1:34 PM
Duration 16:33 💡
OS Linux Debian - 11.4
Browser WebKit 16

View run in Cypress Dashboard ➡️


Flakiness

cypress/e2e/commands/xhr.cy.js Flakiness
1 src/cy/commands/xhr > abort > aborts xhrs currently in flight

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

@@ -765,7 +765,6 @@ describe('src/cy/commands/navigation', () => {
})

cy.visit('fixtures/redirection-loop-a.html')
cy.get('div').should('contain', 'this should fail?')
Copy link
Member Author

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 mjhenkes self-assigned this Oct 25, 2022
@mjhenkes mjhenkes marked this pull request as ready for review October 25, 2022 14:58
@emilyrohrbough
Copy link
Member

@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)) {
Copy link
Member

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 😄

mjhenkes and others added 2 commits October 25, 2022 11:58
@mjhenkes mjhenkes merged commit 322fb87 into develop Oct 26, 2022
@mjhenkes mjhenkes deleted the matth/fix/ignore-visiting-about-blank-when-checking-redirect-limits branch October 26, 2022 13:34
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 10, 2022

Released in 11.0.0.

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

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

Successfully merging this pull request may close these issues.

3 participants