A lot of services use reCAPTCHA and want to run E2E tests. Google explains how to do that in the part "I'd like to run automated tests with reCAPTCHA. What should I do?. However, it is generally thought that E2E testing is not possible. For this reason, I created this repository to provide a demo of how to create a reCAPTCHA for testing, so you can easily try it out.
Google has prepared the following official keys for you to use in place of your existing keys:
- site_key:
6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
- secret_key:
6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
Prerequisites
Step by step
-
Clone the repository
git clone git@github.com:autifyhq/autify-demo-test-with-reCAPTCHA.git cd automated-tests-with-reCAPTCHA
-
Build an image from a Dockerfile
docker build -t recaptcha-demo --build-arg RUBY_VERSION=2.6.5-alpine3.10 --build-arg BUNDLER_VERSION=2.0.2 .
-
Start a server
docker run -p 4567:80 recaptcha-demo
Then, load http://localhost:4567 in a browser 🎉
Submit all changes directly to the master branch.
- Fork the repository and create your branch from master.
- Add changes
- Format your code with rufo
bundle exec rufo .
- Create a pull request.
Automated deploying to production. Hosted on Heroku.
- Merge a topic branch into
master
- Heroku deployes the app automatically
autify-demo-test-with-reCAPTCHA © Autify Engineers. Released under the MIT License.
Authored and maintained by Autify Engineers with help from contributors.