-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Cypress browsers close after selecting payment method KLARNA #30621
Comments
Hi @theoBourelakos, could you try enabling experimentalModifyObstructiveThirdPartyCode to see if that resolves the issue? |
Hello ,I am already using this.
***@***.***
Theodore Bourelakos
QA Team Leader
T. (+30) 211 1094500
***@***.***
Your Digital Transformation Partner
www.lighthouse.gr<https://www.lighthouse.gr/>
***@***.***<https://www.facebook.com/LighthouseOmnichannel> ***@***.*** <https://www.linkedin.com/company/lighthouse-sa>
***@***.*** ***@***.*** <https://www.lighthouse.gr/google-premier-partners> ***@***.***
From: Matt Schile ***@***.***>
Sent: Δευτέρα, 18 Νοεμβρίου 2024 10:08 μμ
To: cypress-io/cypress ***@***.***>
Cc: Theodoros Bourelakos ***@***.***>; Mention ***@***.***>
Subject: Re: [cypress-io/cypress] Cypress browsers close after selecting payment method KLARNA (Issue #30621)
Hi @theoBourelakos<https://github.com/theoBourelakos>, could you try enabling experimentalModifyObstructiveThirdPartyCode<https://docs.cypress.io/app/references/experiments#Configuration> to see if that resolves the issue?
—
Reply to this email directly, view it on GitHub<#30621 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BMKJ5EPPXZH633SGH2QVMZL2BJCLNAVCNFSM6AAAAABR3C2DR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBUGAYTGNBXGE>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
@theoBourelakos, can you provide a reproducible example of the issue you're encountering. Here are some tips for providing a Short, Self Contained, Correct, Example and our own Troubleshooting Cypress guide. Forking Cypress Test Tiny makes sharing a reproducible example easier to share and easier for our engineers to replicate your issues. This method also keeps the reproduction as simple as possible, which helps us eliminate potential causes and noise from the investigation. |
` /// describe('Checkout: Payment Methods - Klarna', function() {
}) //it ` This is an over-simplified version of my test and still the Cypress closes . so If you can run it and tell me what behavior you see i would be happy. |
Thank you for the reproduction @theoBourelakos. With it, I was able to reproduce the problem and I think I found a workaround. We have logic to intercept submits that try and navigate cy.intercept('*/processorder', (req) => {
req.continue((res) => {
res.body = res.body.replace('_top', '')
})
}) I'll still keep this issue open as there is likely something we can do on our end to resolve this as well. Let us know if the workaround works. |
For posterity, this seems to be happening, with a document that looks like this: <body onload='document.form.submit()'>
<form name='form' action='<url>' method='POST' target='_top'></form>
</body> We have logic to intercept form submissions, but this only works when events are triggered and |
Thanks a lot! It worked this way. |
Current behavior
Steps:
Desired behavior
Cypress browser not to close and redirect me to KLARNA page.
Test code to reproduce
Cypress Version
13.15.2
Node version
20.17.0
Operating System
Windows 11 Pro 21H2
Debug Logs
No response
Other
The text was updated successfully, but these errors were encountered: