Skip to content

feat(cli): add Playwright as an E2E testing option#289

Open
gonzoblasco wants to merge 1 commit into
akd-io:developfrom
gonzoblasco:feature/223-add-playwright-support
Open

feat(cli): add Playwright as an E2E testing option#289
gonzoblasco wants to merge 1 commit into
akd-io:developfrom
gonzoblasco:feature/223-add-playwright-support

Conversation

@gonzoblasco

Copy link
Copy Markdown

What

Closes #223

Adds --playwright flag that installs @playwright/test and generates a sensible playwright.config.ts.

Why

Playwright is the modern standard for E2E testing in the Next.js ecosystem. It complements Vitest (unit testing) — when both are selected, users get a complete testing story. Issue #223 requests this support.

How

  • New plugin playwright activated when --playwright flag is set
  • Installs @playwright/test as a devDependency
  • Generates playwright.config.ts with:
    • Chromium project (easy to extend)
    • baseURL: http://localhost:3000
    • webServer integration with npm run dev (auto-starts dev server)
    • Trace on first retry, HTML reporter
    • CI-aware (retries, workers, forbidOnly)
  • Adds test:e2e and test:e2e:ui scripts
  • Registered in scripts and technologies sort orders

Testing

  • tsc --noEmit passes
  • Unit tests pass (pnpm test:cli)

Closes akd-io#223

Adds --playwright flag that installs @playwright/test as a devDependency,
generates playwright.config.ts with sensible defaults (chromium, baseURL
localhost:3000, webServer integration with dev script), and adds
test:e2e and test:e2e:ui scripts.
@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

@gonzoblasco is attempting to deploy a commit to the 9ty Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add support for Playwright

1 participant