cypress-io / cypress-documentation

Cypress Documentation for the Cypress App, API, Cypress Cloud, UI Coverage and Cypress Accessibility.
https://docs.cypress.io
MIT License
950 stars 1.05k forks source link

The use of experimentalModifyObstructiveThirdPartyCode: true is affecting a flow with reCAPTCHA configured for a testing environment #5372

Open guilhermesousa-cwi opened 1 year ago

guilhermesousa-cwi commented 1 year ago

Description

The use of experimentalModifyObstructiveThirdPartyCode: true is affecting a flow with reCAPTCHA configured for a testing environment. The reCAPTCHA goes into a loop and does not enable the "Enter" button. Testing with the configuration parameter set to false passes successfully. Additionally, manual tests performed on the application also succeed.

This week, I needed to implement tests in an application with SSO authentication, and I detected this behavior.

URL of Issue(s)

private

Steps to replicate

image

Browser

Google Chrome - 114.0.5735.198 | Electron 106.0.5249.51

Device

Additional Information

Cypress: 12.17.0

nagash77 commented 1 year ago

Hi @guilhermesousa-cwi Right now there doesn't seem to be enough information to reproduce the problem on our end. Unless we receive a reliable reproduction, we'll eventually have to close this issue until we can reproduce it. This does not mean that your issue is not happening - it just means that we do not have a path to move forward.

Please 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.

guilhermesousa-cwi commented 1 year ago

@nagash77 I cannot provide more information as this is a business environment. The printscreen and the description I sent objectively explain the problem.

To simulate the case, there must be an application using reCaptcha and this feature would be disabled by the frontend team.

guilhermesousa-cwi commented 1 year ago

Another code-level information, this is how I interact with this reCaptcha and configure it as false.

image image

nagash77 commented 1 year ago

which reCaptcha library are you using specifically?

guilhermesousa-cwi commented 1 year ago

@nagash77 react-google-recaptcha”: “2.1.0"