https://cypress.io logo
cy.origin() Cypress not opening page from another ...
# i-need-help
c
Hi, dear Cypress community. Please help me to resolve the following problem After clicking on the "MakePayment" button (screen from my test environment), the user is redirected to the payment page. URL of the payment page looks like this "https://checkout.stripe.com/c/pay/cs_test_a1E8WaWpykZA5UJXYg81r3YzULc1a1nnnEHsIOn" where "cs_test_a1E8WaWpykZA5UJXYg81r3YzULc1a1nnnEHsIOn" is unique for each user and generated new every time after clicking the "MakePayment" button How to tell Cypress to "pick up" what's after https://checkout.stripe.com/c/pay/ ? cy.OpenMakePaymentTest() cy.get(makePayment.radtioCustomAmount).click() cy.get(makePayment.textInputField).type (100) cy.get(makePayment.makePaymentButton).click() cy.wait (6000) cy.origin('https://checkout.stripe.com/', () => { cy.visit('/c/pay/') }
The test is passed. But the page is not opened
a
It looks like other users have also faced this issue when using Stripe, however, the Engineering team is still in need of a reproducible example to investigate: https://github.com/cypress-io/cypress/issues/25934
@curved-pager-86474 Can you create a repro of your issue and add it to this open GitHub issue?
c
@adventurous-dream-20049 Sure, will do. I need to add repro steps to https://github.com/cypress-io/cypress/issues/25934 right?
@adventurous-dream-20049 comment has been added, thanks
a
@curved-pager-86474 After taking a look at the snippet, it looks like we would need to also understand the logic of the custom commands added to recreate the issue. Can you provide a fully reproducible example or the custom commands (and anything else necessary) that we can easily test ourselves? Ideally, if you could put together a small repo or share it as as a zip file, or you could also use the cypress-test-tiny repo: https://github.com/cypress-io/cypress-test-tiny
c
@adventurous-dream-20049 On my current project, integration with the payment system Stripe. After clicking on the "Confirm" button, the user is redirected to the payment page. The URL of the payment page looks like this "https://checkout.stripe.com/c/pay/cs_test_a1E8WaWpykZA5UJXYg81r3YzULc1a1nnnEHsIOn" where "cs_test_a1E8WaWpykZA5UJXYg81r3YzULc1a1nnnEHsIOn" is unique for each user and generated new every time after clicking the "Confirm" button The test passes successfully, but the content page does not open. I really need it and would be very grateful if you could fix this problem. Regarding the question, how to reproduce this problem. I can send you a piece of the test code with a link to one of the environments and your team can do it. It's will be ok?
a
@curved-pager-86474 Thanks for providing additional context. What the investigating Engineer is looking for is a way to easily replicate what you are experiencing. If what you are sending is private, please let me know otherwise, you'll want to add anything needed to replicate the issue directly to the GitHub issue itself. We need to be able to replicate the issue to investigate further on our side.
Since this has been identified as a bug, this is not something I will be able to fix. This will require the Product and Engineering team to investigate and eventually release a fix at a later date
Once one of us is able to reproduce the issue, the investigation can continue, however, at the moment the investigation is at a standstill.
c
@adventurous-dream-20049 I've sent a message in DM
a
In case anyone is wondering, this issue was resolved by adding
experimentalModifyObstructiveThirdPartyCode: true