We have released a new free open source extension for Magento 2 and Adobe Commerce.
It will be useful for implementing automated testing of Magento stores protected with Google reCAPCTHA.
Magento/Adobe Commerce store owners often use Google reCAPTCHA as a way to protect the store from malicious attacks (spammers, carders and bad bots in general).
Google reCAPCTHA is quite good blocking the bots.
But there are bad bots you want to block and good bots you want to allow. What if you need to test your websites using automated, scripted tests? By its design reCAPTCHA blocks your script, so you can’t test part of the website protected by it. Typically reCAPTCHA is enabled for checkout, account creation, account login, which is a critical part of store functionality and ideally you want to test it not only on staging, but on production environment as well.
That is where our extension comes handy.
It allows your scripts to bypass reCAPTCHA, while keep it for all other visitors.
You define list of IP addresses or a specific user-agent where reCAPTCHA will not be called. So your automated tests will work without interruption or human intervention.
The extension is available on Github and Packagist, it is free to use, open-source (MIT License).
The links are below: