Production Playwright config template with CI/CD auth and reporting.
// Source: https://github.com/0xDarkMatter/claude-mods | License: MIT | Copyright 2025-2026 0xDarkMatter
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Production Playwright config template.
*
* Copy to playwright.config.ts and adjust the marked sections.
* Conventions baked in:
* - blob reporter on CI (shard-mergeable), html locally
* - trace on first retry (flake forensics at near-zero cost)
* - auth via a `setup` project + storageState (login once, reuse everywhere)
* - webServer boots the app and waits for it — no sleeps in CI scripts
*/
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
// Run tests within files in parallel too (also gives per-test shard balancing).
// Set false o
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key