Commit ed25b25
authored
Run web Vitest browser tests headless by default (#930)
## Summary
The web Vitest suite (`vitest.web.config.ts`) left `browser.headless`
unset, so Vitest launched a visible browser window when run locally and
only fell back to headless in CI. This makes the web tests open a
browser window on every local run.
## Changes
- **Default to headless**: set `browser.headless` based on a new
`BROWSER_HEADED` env var, so the runner stays headless unless explicitly
opted out.
```ts
browser: {
enabled: true,
// headless by default; set BROWSER_HEADED=true for a visible browser (debugging)
headless: process.env.BROWSER_HEADED !== "true",
provider: playwright(),
instances: [{ browser }],
},
```
## Checklist
Delete items not relevant to your PR:
- [ ] A human-readable description of the changes was provided to
include in CHANGELOG
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>1 parent d895702 commit ed25b25
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| |||
0 commit comments