Getting Error Page Load ---waiting for new page to load --- #30072
Unanswered
tg-bonrepublic
asked this question in
Questions and Help
Replies: 1 comment 2 replies
-
Have you referred to https://docs.cypress.io/guides/guides/cross-origin-testing and are you using You can make posted code more readable by using fenced code blocks. See https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are currently implementing a test case which involves cross-origin navigation. Despite trying various approaches, we are facing issues with Cypress where the URL does not change as expected after clicking the SSO-login button. The test breaks while waiting for the page to load, although the page appears to be loaded. Also we have other case running on same origin. Using approaches like
experimentalSessionAndOrigin: true
chromeWebSecurity: false
Sample code
cy.visit('https://xyz', {
timeout: 120000,
})
cy.get('button.Button.Button_secondary.SSO_button#HRworksLogin')
.should('be.visible')
.and('exist')
cy.get('a[href="https://abc"]')
.should('be.visible')
.click()
Beta Was this translation helpful? Give feedback.
All reactions