How can I login to Shopify using Cypress without captcha or security errors?

Topic summary

A developer is trying to automate Shopify login tests using Cypress but encounters two blocking issues:

Main obstacles:

  • CAPTCHA challenges during login
  • Security error: “We were unable to verify that your request originated from Shopify”

Community responses:

  • Multiple users report experiencing the same CAPTCHA bypass problem
  • One user successfully switched from Cypress to Playwright, reporting it “works out of box” without these issues
  • However, another user notes Playwright tests work locally but still trigger Cloudflare Turnstile (bot detection) when run from CI/CD pipelines

Current status:

  • No confirmed solution for Cypress
  • Playwright appears promising but may have limitations in CI environments
  • Discussion remains open with no definitive resolution for bypassing Cloudflare’s bot protection
Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hi all!
I want to test our application using Cypress.
I have a problem with authorization.
Can you please tell me could I log in to shopify without captcha and enter my store without the security error:

“We were unable to verify that your request originated from Shopify.
If this is your first time seeing this error, please reload the page you were on and try again.” with cypress.
Thanks in advance!

7 Likes

Anyone resolved this?

3 Likes

Same issue. Has anyone solved how to bypass the CAPTCHA challenge when logging in during Cypress tests?

2 Likes

I moved to playwright, and it works out of box.

There is not much difference between the two.

Does automated testing with Playwright still work for you? I want to test our app with Playwright and the tests work fine locally, but trigger Cloudflare turnstile (bot detection) when run from CI. I wonder if you had ran into this?

1 Like

Hey @NSMatveev did you got the solution for bypassing Cloudflare captcha ?