How to get around a person’s recaptcha test in a night time test?

I am writing a nightwatch test for Backbone View that includes a Google "recaptcha" human check . Obviously, a test is a bot, and therefore it cannot pass the test. So I’m trying to figure out a way around a person’s test in a test. Can anyone suggest a way to do this elegantly?

At the moment, the only opportunity I see is to set the request parameter to the url that nightwatch uses to load the page, and then check this request parameter in the Backbone presentation logic, but that seems bad. I do not want to include testing logic in the code itself. It is just dirty.

Thoughts?

+6
source share

All Articles