appleboy / react-recaptcha

A react.js reCAPTCHA for Google
https://www.google.com/recaptcha/intro/index.html
BSD 3-Clause "New" or "Revised" License
634 stars 97 forks source link

Disabling in a automated test environment #323

Closed CGottschallJ closed 1 year ago

CGottschallJ commented 1 year ago

Hey,

I am looking to disable/work through react-recaptcha in a cypress automated test environment.

I've seen in the documentation here that a secondary siteKey and secretKey can be passed into the recaptcha however I am not seeing that is possible in the documentation for react-recaptcha. Is anyone aware of a way to successfully bypass the pop up in cypress or is there anything in the package that would allow for this?

Thanks!

EDIT: I figured out that passing the key from the link above works!

Wajihah-Kainat commented 1 year ago

Hey @CGottschallJ can you please share your code, I want to know how it worked. I ran into the same thing. Help from your end would be appreciated