My test in Cypress does the following:
- Do the login
- On the next page clicks a button
- The button clicked in step 2, Cypress starts to load the correct URL but then the landing page (login screen from step 1) is displayed. I want that after clicking the button, Cypress waits for the page to load completely instead of returning to the login page.
I already tried cy.wait()
, "pageLoadTimeout": 900000,, "includeShadowDom": true, "modifyObstructiveCode":false, "responseTimeout": 120000
This is what I got
Update: When I do cy.intercept('myurl/#').as('get#') cy.get('button').click()// after clicking on this button the page should loads completely cy.wait('#get')
I got the following