Re: Automation test failing because of captcha check on admin login page

Automation test failing because of captcha check on admin login page

Palak2596
Shopify Partner
5 0 6

I have built a custom Shopify app (using remix template) and have written automation tests using playwright. 
I am currently testing 2 things here: 

  1. Testing online store
  2. Testing custom app by signing as admin

These test run without any issues in local environment but fails on staging because of captcha check on admin login page. We can disable captcha for online store but I didn't find any thing that helps with admin login.

I would really appreciate your suggestions or experiences on tackling this captacha issue. Thanks!

 

Replies 2 (2)

VeraG
Shopify Partner
3 0 2

Having the same issue with our Playwright automation tests. No suggestions as I just started looking into it, but I was curious if you were able to solve this?

atamanini
Shopify Partner
4 0 0

They answered this to me recently (nothing worked):

 

"Hi Andre,
 
Thank you for reaching out and for your patience while we looked into this further.
 
After carefully reviewing the issue, we confirmed that the appearance of hCaptcha in your store is part of Shopify's standard security protocol. hCaptcha is automatically triggered when unusual or automated login activity is detected, even in a testing environment, as a security measure to safeguard accounts and prevent unauthorized access.
 
Unfortunately, there's no available method or workaround to fully disable or bypass hCaptcha, even for test or development stores. This default measure ensures the overall security and reliability of the platform for all merchants and customers.
 
We understand this might cause some inconvenience during testing scenarios. To mitigate or reduce the appearance of hCaptcha, slowing down automated tests or implementing intervals between login attempts may help; however, complete removal isn't possible.
 
Please let us know if you have any further questions. We're always happy to help.
 
Kind Regards"
 
Jack L | Shopify Support