-
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
Unable to complete e2e test using paypal payment (on sanbox test website) #23647
Comments
Hi @minopica. Thank you for opening an issue. Looks like this might be related to #14986. Have you tried the |
Hi @AtofStryker I tryed also to add the "experimentalModifyObstructiveThirdPartyCode" parameter into the cypress.config.js file: experimentalModifyObstructiveThirdPartyCode: true but with this configuration ALL my test specs fail with the following error: as soos as the cy.visit("...") command is invoked I got an unexpected exception "(uncaught exception)SyntaxError: Invalid left-hand side in assignment", see attached screenshot in the comment posted above. can you help me to solve this issue? |
@minopica I can try! Are you able to provide a reproduction repository? I am wondering if we are rewriting something that might be causing a syntax error. |
When I use experimentalModifyObstructiveThirdPartyCode: true all the tests fail with the error
following an example of js test that is failing:
following the cypress.config.js:
Can you verify if you are able to reproduce this issue using the test written above ? |
hey @minopica. I was able to create a quick reproduction with the code you provided. It is a private repository that I have invited you to here. In the examples you have posted publicly, I have redacted the basic authentication from the |
Thanks, let me know when you have the fix |
@minopica I figured out what is causing the issue and was able to reproduce with a unit test inside the regex-rewritter.
instead of
I should be working on this hopefully this week. Hopefully figuring out a fix is easy but a reproducible unit test along with a full reproduction is a great sign! |
Good news !!! I wait for your news... |
Is cypress 10.8 including the fix? |
@minopica 10.8 does not have the fix unfortunately, but I have high confidence it will be in 10.9 as we have a PR open for review |
The code for this is done in cypress-io/cypress#23820, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
I am using cyress 10.7.0 in order to perform E2E tests on a selfcare webapp that provides also the possibilty to perform payment through paypal.
In the test environment we can use sandbox test paypal website
As soon as the user is redirected to sandbox in order to confirm the paypal credentials then the cypress runner disappears and the test get stuck.
I added the following configurations into cypress.config.js file:
chromeWebSecurity: false,
defaultCommandTimeout: 20000,
pageLoadTimeout: 60000,
watchForFileChanges: false,
See linked issue:
#22186
I tryed also to add the "experimentalModifyObstructiveThirdPartyCode" parameter into the cypress.config.js file:
experimentalModifyObstructiveThirdPartyCode: true
but with this configuration ALL my test specs fail with the following error:
as soos as the cy.visit("...") command is invoked I got an unexpected exception "(uncaught exception)SyntaxError: Invalid left-hand side in assignment", see attached screenshot.
Desired behavior
No response
Test code to reproduce
You have to use a website which redirects the user to perform payment on paypal test website (sandbox)
Cypress Version
10.7.0
Node version
16.17.0
Operating System
macOS 12.5.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: