[BUG] Docker html report not working as expected since 1.22
See original GitHub issueContext:
- Playwright Version: 1.22
- Operating System: Mac
- Node.js version: v16.13.2
- Browser: All
Hi. I’m having issues with the playwright html reporter used inside a docker container and I think there was some regression error introduced between playwright version 1.21.1 and 1.22.0, because in 1.21.1 I was able to run the docker container with
Code Snippet
docker run -v $PWD:/playwright -w /playwright -it --rm -p 9323:9323 mcr.microsoft.com/playwright:v1.22.0-focal /bin/bash
and it would open the html report without problems. But since 1.22.0 it gives following message
node:events:505
throw er; // Unhandled 'error' event
^
Error: spawn xdg-open ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn xdg-open',
path: 'xdg-open',
spawnargs: [ 'http://127.0.0.1:9323' ]
}
Was there some change since 1.21.1 and 1.22 that would have caused this? Any help would be highly appreciated, as the docker setup is really quite helpful for me.
Thanks and BR
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
1322909 – docker-1.10.3-3.gitd93ee51.fc24 fails to run anything
docker -1.10.3-4.gitf8a9a2a.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug...
Read more >Workarounds for common problems - Docker Documentation
Docker Desktop fails to start when anti-virus software is installed. Some anti-virus software may be incompatible with Hyper-V and Microsoft Windows 10 builds. ......
Read more >How To Run End-to-End Tests Using Playwright and Docker
In this tutorial, you will set up an environment to use Playwright with Typescript for end-to-end testing, write and execute the tests, export ......
Read more >newman-reporter-htmlextra - npm
A Newman HTML reporter that has been extended to include the separation ... If this is not set, the report will show "Newman...
Read more >Kubernetes (in AKS) error while pulling image from private ...
kubectl create secret docker-registry artifactory-pro -n test ... I have not found network problems between jfrog and azure aks.
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

For the record: we decided to expose host and port in html reporter config so that it can be configured to use
0.0.0.0@JoSchrader Oops it wasn’t! Let me bring it back. Thank you for noticing.
@JoSchrader @queicherius Should be addressed by: https://github.com/microsoft/playwright/pull/18517