question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Playwright works locally but fails on CI

See original GitHub issue

Context:

  • 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Gbahdeybohcommented, Jul 1, 2020

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

0reactions
aslushnikovcommented, Jul 1, 2020

@Gbahdeyboh I’m sorry I didn’t follow up on this. Is this still relevant?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found