Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
Testcafe test that fails only when run from testcafe docker image?

I have a weird situation going on with one of the react applications at my company. We have a suite of E2E tests written in testcafe that check our pull requests before we can merge. One portion of the application has about 15 tests associated with it.

When I pull down the changes to my latest branch and run the tests with Testcafe locally via yarn, while my application is pointed at the same exact backend services that we use for all testing, all 15 tests pass.

When the tests are run via github actions, using a docker image of our application as well as testcafe's docker container, 1/15 of the tests fails. The one that fails claims that it can't find certain elements within the dom.

I have spent days debugging this and I'm completely out of ideas. I've tried attempting to select different elements, using selectors from testing library instead of testcafe, implementing various waiting mechanisms to try to give the page additional time to load, none of it seems to matter just for this one single test.

I can't for the life of me figure out why the tests would pass when run locally, and the actual new feature works when tested manually, but only 1/15 tests would consistently fail when run via the docker process.

Does anyone have any ideas why this discrepancy could exist?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!