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 
})
})

https://user-images.githubusercontent.com/62381266/189370370-c5597087-2d1d-478c-b043-56f31c0c2ce6.mov

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)

Most upvoted comments

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:

Hello, this is happening to me with the same payment platform! we are simulating a payment and once we confirm it redirects to a new page and the Cypress sidebar disappears! Just like in the video, what can we do ?? is there any workaround ??

— Reply to this email directly, view it on GitHub https://github.com/cypress-io/cypress/issues/23751#issuecomment-1847509014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOSJZO3A7MQSED4VMOBCCJDYIM74FAVCNFSM6AAAAAAQIW5BE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBXGUYDSMBRGQ . You are receiving this because you commented.Message ID: @.***>

@chrisbreiding When is the issue is planned to fix

it didn’t help, now the wired part is while experimentalModifyObstructiveThirdPartyCode: true, adding this to cypress.config.js iframe is not even loading , for iframe to load now i have to give now modifyObstructiveCode: false without experimentalModifyObstructiveThirdPartyCode , no idea what has changed

I 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?