forms icon indicating copy to clipboard operation
forms copied to clipboard

Disable reCaptcha fields during test execution

Open benr77 opened this issue 3 years ago • 0 comments

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.

benr77 avatar Apr 04 '22 13:04 benr77