Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Firefox seems to do nothing and eventually times out #842

Closed
jrieken opened this issue Feb 5, 2020 · 3 comments
Closed

[BUG] Firefox seems to do nothing and eventually times out #842

jrieken opened this issue Feb 5, 2020 · 3 comments

Comments

@jrieken
Copy link
Member

jrieken commented Feb 5, 2020

Context:

  • Playwright Version: 0.10.0
  • Operating System: Mac

Code Snippet

We are now using playwright to run a subset of our VSCode unit tests inside different browser types. The "steps" are this

  • clone vscode from https://github.com/microsoft/vscode and run yarn
  • run node test/browser/index.js --browser chromium and see how tests success and fail
  • run node test/browser/index.js --browser firefox and nothing happens...

At the heard of this we load mocha inside a webpage which gets our AMD loader and other things ready (this page loads without issues inside firefox). Then we use page.evaluate to tell the page what modules to load and to start tests. Tests communicate back to the node-process via page.exposeFunction-ed function using a special mocha reporter implementation.

Describe the bug

All of the above works fine in webkit and chromium but does seemingly nothing in firefox...

@enjikaka
Copy link

enjikaka commented Feb 5, 2020

Also seeing Firefox just freezing here. However I also get a yellow notification on the top saying that Firefox is installing components to play audio and video. (Widevine)

@pavelfeldman
Copy link
Member

@jrieken 👋

This looks like a dupe of #822

We assume tests are serving from the localhost to use fetch and other web features. We'll be addressing #822, but for now if you have a way to serve your test, it would mitigate it.

@jrieken
Copy link
Member Author

jrieken commented Feb 6, 2020

sand4rt pushed a commit to sand4rt/playwright that referenced this issue Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants