-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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]: UI mode in Docker doesn't watch tests #29785
Comments
@edumserrano Thank you for the issue and great analysis! Could you please try running with |
@dgozman, that does solve the issue. In the Docker & GitHub Codespaces docs for UI mode you talk about the |
@edumserrano I'll keep this issue open for prioritization, to see how popular the problem is. For now, I'd recommend running with |
Why was this issue closed?Thank you for your contribution to our project. This issue has been closed due to its limited upvotes and recent activity, and insufficient feedback for us to effectively act upon. Our priority is to focus on bugs that reflect higher user engagement and have actionable feedback, to ensure our bug database stays manageable. Should you feel this closure was in error, please create a new issue and reference this one. We're open to revisiting it given increased support or additional clarity. Your understanding and cooperation are greatly appreciated. |
Version
1.42.1
Steps to reproduce
/demos/docker
.npm install
.npx playwright install
.npm run test:ui
.This will start a docker container which will run the app and then start Playwright's UI mode. The UI mode will be served from the container and it'll be accessible at http://localhost:43008.
demos\docker\tests\example.spec.ts
and change the name of the test and note that the UI mode doesn't reflect the change.This video shows the problem:
playwright-ui-mode-docker-watch.mp4
Expected behavior
Changes to the tests should be watched and the UI mode should reflect them.
Actual behavior
Changes to tests aren't reflected in UI mode automatically. The workaround is to force all tests to be reloaded using the
reload
option on the top left of the UI mode.Additional context
The UI mode does automatically watch changes in tests when it's not executed in Docker. You can check this by following the steps to reproduce the problem as they are described but replace step 5 with
npx playwright test --ui
.When setting up Playwright to run my Angular tests in Docker I came across a problem where File changes aren't triggering an application rebuild when testing with UI mode. I wonder if the problem affecting the UI mode test files watch in Docker is similar. Especially regarding these parts:
I wonder if perhaps the UI mode needs to also have some sort of
poll
option that can be set to support this Docker+WSL2 scenario? (assuming the issue is indeed related with a problem in file change detection in WSL2).Environment
Footnotes
feat(webpackDevServer): Add watchOptions for webpackDevServer #1814 ↩
Nodemon and webpack-dev-server hot reload not working under WSL 2 after Windows 10 resinstall ↩
The text was updated successfully, but these errors were encountered: