Playwright works locally but fails on CI
See original GitHub issueContext:
- Playwright Version: 0.13.0
- Operating System: Linux
Describe the bug
Playwright works normally locally, but when on the CI. The browser fails to Open. I get the error
TypeError: Cannot read property 'newContext' of undefined
The full log can be found here.
And I’m not exactly sure why this works locally and not on CI.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Playwright tests work locally but fail when run in "npx ...
Playwright tests work locally but fail when run in "npx playwright test" in Azure DevOps Pipelines with "error page. goto: net::ERR_CONNECTION_ ...
Read more >Playwright tests fail in Gitlab CI : r/softwaretesting - Reddit
Hi! I've been writing automated E2E tests in playwright these past months, and the tests work properly when I run them locally.
Read more >My code failed in pipeline but passed in local, why ... - YouTube
Playwright with Java or Node (JavaScript / TypeScript) which is best? · Playwright & Circle CI Integration · Using Playwright for end-to-end ...
Read more >How to add Playwright tests to your pull request CI with GitHub ...
I want to show you how to add Playwright tests to your PRs and how to tie it all together with a GitHub...
Read more >Why Do My Tests Pass Locally but Fail on CircleCI?
Different language versions. Ensure you are using the same language version on your machine and on CircleCI. · Different package versions.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No, not at all. Just in case anyone else experiences the same issue, fs.promises(which playwright uses) is only stable in Node erbium(v12) upwards. I was also missing some Docker CI config, see here for correct configurations for your CI
@Gbahdeyboh I’m sorry I didn’t follow up on this. Is this still relevant?