Calling Puppeteer from Cypress

As mentioned in a previous post, I used Cypress.io to run E2E testing. However, Cypress could not bypass Google’s recaptcha.

I found the solution by calling Puppeteer from Cypress and present the test results in the same report.

The trick is to create cypress tasks and call puppeteer in a plugin file. I got how it can be done from this GitHub thread.

While running the tests, I experienced a few timeout issues. To make the tests more stable, I specified a longer timeout value in cypress.json.

"taskTimeout": 5000000