Skip to content

add headless playwright runner for AI agents#280

Open
johannesmutter wants to merge 1 commit into
mainfrom
playwright-for-agents
Open

add headless playwright runner for AI agents#280
johannesmutter wants to merge 1 commit into
mainfrom
playwright-for-agents

Conversation

@johannesmutter

Copy link
Copy Markdown
Collaborator

npm test and npm run test:unit keep their current behaviour — preview provider, tests run in the user's real browser. Adds npm run test:headless as an opt-in alternative that uses playwright in headless mode (no tabs in the user's browser, no focus stealing, safe to invoke repeatedly).

Pinned vitest and @vitest/browser-playwright to 4.1.5 because @vitest/browser-preview is only published up to 4.1.5; the three need to stay in lockstep.

CLAUDE.md updated to route AI agents through test:headless and to note the one-time npx playwright install chromium setup step.

`npm test` and `npm run test:unit` keep their current behaviour — preview
provider, tests run in the user's real browser. Adds `npm run test:headless`
as an opt-in alternative that uses playwright in headless mode (no tabs in
the user's browser, no focus stealing, safe to invoke repeatedly).

Pinned vitest and @vitest/browser-playwright to 4.1.5 because
@vitest/browser-preview is only published up to 4.1.5; the three need to
stay in lockstep.

CLAUDE.md updated to route AI agents through test:headless and to note
the one-time `npx playwright install chromium` setup step.
@vercel

vercel Bot commented May 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
svedit Ready Ready Preview, Comment May 16, 2026 8:26pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant