cypress: Cypress Test runner getting exit while redirect
Current behavior
while running the test , cypress runner getting disappeared on redirect,
Desired behavior
cypress runner should still be visible on redirect
Test code to reproduce
describe("test", function () {
it("create payment", function () {
cy.visit(*********) //provide any url that redirect to another url
})
})
Cypress Version
10.6.0
Node version
v16.16.0
Operating System
macOS 11.2.3
Debug Logs
No response
Other
No response
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 26 (6 by maintainers)
I am facing the same issue, Can any one share the solution if possible? while running the test , cypress runner getting disappeared on redirect,
Hello,
Please keep proper wait time before redirecting to other page.It works
Best regards
On Fri, Dec 8, 2023, 10:45 AM crismarycastellanos @.***> wrote:
@chrisbreiding When is the issue is planned to fix
it didn’t help, now the wired part is while
experimentalModifyObstructiveThirdPartyCode: true,adding this tocypress.config.jsiframe is not even loading , for iframe to load now i have to give nowmodifyObstructiveCode: falsewithout experimentalModifyObstructiveThirdPartyCode , no idea what has changedI am getting this issue as well. The behavioral difference being that when the redirect fires the Cypress controls disappear and the non AUT browser resolves to the redirected page. This makes the headed runner basically unrecoverable and require a restart.
i meet the same issue, when request my domain , the response submit redirect html ,then cypress runner getting exit, jump to redirect domain , can i know cy.origin can cover it?