cypress-documentation icon indicating copy to clipboard operation
cypress-documentation copied to clipboard

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

Open guilhermesousa-cwi opened this issue 2 years ago • 5 comments

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

  • [X] PC
  • [ ] Mac
  • [ ] iPhone
  • [ ] iPad
  • [ ] Android Phone
  • [ ] Android Tablet

Additional Information

Cypress: 12.17.0

guilhermesousa-cwi avatar Jul 11 '23 05:07 guilhermesousa-cwi

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.

nagash77 avatar Jul 11 '23 13:07 nagash77

@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 avatar Jul 11 '23 13:07 guilhermesousa-cwi

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

image image

guilhermesousa-cwi avatar Jul 11 '23 15:07 guilhermesousa-cwi

which reCaptcha library are you using specifically?

nagash77 avatar Jul 12 '23 19:07 nagash77

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

guilhermesousa-cwi avatar Jul 13 '23 13:07 guilhermesousa-cwi