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
cy.visit fails inside cy.origin for certain sites #22459
Comments
I can reproduce this with the given code or with other sites too: it('visit cypress.io', () => {
cy.origin('cypress.io', () => {
cy.visit('https://cypress.io') // page load times out
})
}) In certain circumstances, I saw |
On Cypress 10.9 this is failing with a different error now: Also, I updated the example repo. I'll be so happy once this is fixed :) |
I could revert to |
This is also happening to me on v10.10.0 |
I have the same problem v10.10.0 |
Maybe it has something to do with the "new url" events? I also updated the example repo, needed to switch the file preprocessor to |
Current behavior
Currently, when I visit certain sites (like login.ibm.com) within a
cy.origin()
, Cypress fails saying that the page never fired its load event:However, when I do the same visit outside of a
cy.origin()
it works without issue:Desired behavior
In this situation, Cypress should visit the url and continue working as expected
Test code to reproduce
The test code is available at https://github.com/mrkjdy/cypress-test-tiny/tree/bug/page-load-within-origin. See spec.cy.js
Cypress Version
10.2.0
Other
No response
The text was updated successfully, but these errors were encountered: