playwright: disable HTML reporter auto-open#366
Merged
taybenlor merged 1 commit intoApr 21, 2026
Conversation
Default reporter "html" opens the report via `open --wait-apps` on
macOS, which blocks until the launched browser exits. When Playwright
is driven by an agent (no interactive user to close the window), the
shell never returns — burning the calling process until something
else kills it.
Switch both configs to `[["html", { open: "never" }]]` so the report
is still generated but not auto-opened.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Change both
playwright.config.tsfiles (packages/runtime,packages/wasi) fromreporter: "html"toreporter: [["html", { open: "never" }]].Why
On macOS the default
htmlreporter auto-opens the report by spawningopen --wait-apps <url>, which blocks until the launched browser exits. For anyone running Playwright non-interactively (CI runners withoutCI=1, agent-driven shells, background tooling), the invoking shell never returns — the process just hangs on theopen --wait-appschild.With
open: "never"the report is still generated on disk and can be viewed manually vianpx playwright show-report; Playwright just won't auto-launch a browser on completion.Test plan
npx playwright testinpackages/wasi— run finishes, shell returns, no browser auto-launched.npx playwright show-report— report still renders.packages/runtime.