Closed InduKrish closed 1 year ago
@InduKrish xvfb
is already installed inside docker; you need to call
xvfb-run npx playwright test
inside docker so that there's an X11 display available for browsers launched from the process subtree.
Closing as per above.
Hi @aslushnikov, I was able to run my tests without an error using xvfb-run but the browser where the tests are running doesn't show. Where can I see it? Sorry, I'm running the playwright tests using github codespace and not sure where there tests would show up.
Hi @aslushnikov, I was able to run my tests without an error using xvfb-run but the browser where the tests are running doesn't show. Where can I see it? Sorry, I'm running the playwright tests using github codespace and not sure where there tests would show up.
I am facing the same issue, any help?
Sorry, I'm running the playwright tests using github codespace and not sure where there tests would show up
Hmmm… perhaps you would need to forward X11 from GitHub Codespace as well? I imagine that Docker container would forward X11 to GitHub Codespace but without further redirection, I imagine the output wouldn't go anyway else.
I haven't actually used GitHub Codespace and but I do use Playwright and Docker on a remote system where I had to configure X server forwarding over SSH to be able to use head-full mode.
Hi All, is there a way to run the test with headless mode: false inside docker? is there a reason why the text expects to turn on headless mode ( headless : true) while running the tests inside docker? I would like to see the browser execution while running the tests in docker.
please advise where to add xvfb-run to run tests in headless:true mode? is it inside the docker file? or something like this xvfb-run npx playwright test --reporter=line,allure-playwright,html do we have to install xvfb in docker file? Please advise?