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

Cypress fails to visit in cy.origin block after ~30 cy.origin blocks #22874

Closed
mjhenkes opened this issue Jul 20, 2022 · 2 comments · Fixed by #24243
Closed

Cypress fails to visit in cy.origin block after ~30 cy.origin blocks #22874

mjhenkes opened this issue Jul 20, 2022 · 2 comments · Fixed by #24243
Assignees
Labels
topic: cy.origin Problems or enhancements related to cy.origin command type: bug

Comments

@mjhenkes
Copy link
Member

Current behavior

After creating ~30 spec bridges, attempting to visit inside a cy.origin block will fail to visit.
Screen Shot 2022-07-20 at 2 55 55 PM

Desired behavior

We should successfully visit.

Test code to reproduce

This test can be run in the 'driver' project in cypress.

it('fails to visit', () => {
    // Make ~30 spec bridges
    for (let index = 0; index < 29; index++) {
        cy.origin(`http://www.${index}.com:3500`, () => undefined)
    }

    cy.origin('http://www.app.foobar.com:3500', () => {
        cy.visit('/fixtures/primary-origin.html') // this fails to visit
        cy.log('derp') // This is here to prevent the test from exiting early.
    })
})

Cypress Version

10.3.1

Other

No response

@mjhenkes mjhenkes added the topic: cy.origin Problems or enhancements related to cy.origin command label Jul 20, 2022
@mjhenkes mjhenkes self-assigned this Sep 27, 2022
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: internal labels Oct 13, 2022
@cypress-bot cypress-bot bot added stage: pending release and removed stage: needs review The PR code is done & tested, needs review labels Oct 19, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 19, 2022

The code for this is done in cypress-io/cypress#24243, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 25, 2022

Released in 10.11.0.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: cy.origin Problems or enhancements related to cy.origin command type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants