Skip to content
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

Disable reCaptcha fields during test execution #100

Open
benr77 opened this issue Apr 4, 2022 · 0 comments
Open

Disable reCaptcha fields during test execution #100

benr77 opened this issue Apr 4, 2022 · 0 comments

Comments

@benr77
Copy link

benr77 commented Apr 4, 2022

Currently my functional tests on a form with reCaptcha v3 are failing - obviously the JS is not being executed, but the backend is still looking for the reCaptcha data in the POST submission.

Is there a way to sort this? I cannot find a way to override the form field configuration based on the Symfony environment - my first thought was simply to remove the reCaptcha field if the env is "test".

Any pointers on how to achieve this would be much appreciated. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant