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

fix(reuse): disable tracing #319

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Mar 29, 2023

"Show browser" mode forces context reuse that survives over multiple test runs. Playwright Test sets up tracesDir inside the test-results folder, so it will be removed between runs. When context is reused, its ongoing tracing will fail with ENOENT because trace files were suddenly removed. So we disable tracing in this case.

Fixes microsoft/playwright#21993.

"Show browser" mode forces context reuse that survives over multiple test runs.
Playwright Test sets up `tracesDir` inside the `test-results` folder, so it will be removed between runs.
When context is reused, its ongoing tracing will fail with ENOENT because trace files
were suddenly removed. So we disable tracing in this case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants