/playwright:playwright-configfrom playwright
This skill should be used when configuring Playwright for dApp/DeFi E2E — fullyParallel, workers, webServer, Chromium-only projects, baseURL, retries, and CI settings.
Ships in playwright. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
// playwright.config.ts
import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './tests',
// Blockchain state is often linear — avoid parallel tests in a file
fullyParallel: false,
workers: process.env.CI ? 1 : undefined,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
reporter: [['list'], ['html', { open: 'never' }]],
use: {
baseURL: 'http://127.0.0.1:3000',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: [
{
command: 'anvil',
url: 'http://127.0.0.1:8545',
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
{
command: 'npm run dev',
url: 'http://127.0.0.1:3000',
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
],
})
fullyParallel: false for chain testsIf enabled, Playwright may run tests inside the same file in parallel. Shared Anvil state (balances, nonces, time travel, snapshots) races and flakes. Prefer:
fullyParallel: false)beforeAll / afterAllSynpress wallet-cache mode can restore higher parallelism for independent specs once the extension is cached.
Vite defaults to 5173. Pin host/port so baseURL and webServer.url match:
// vite.config.ts
export default defineConfig({
server: { host: '0.0.0.0', port: 3000 },
})
DeFi flows (approve + swap + mine) are slower than Web2:
export default defineConfig({
timeout: 60_000,
expect: { timeout: 15_000 },
use: { actionTimeout: 15_000, navigationTimeout: 30_000 },
})
{
"scripts": {
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:headed": "playwright test --headed",
"test:e2e:report": "playwright show-report"
}
}
playwright-webserver — multi-service orchestration detailsplaywright-fixtures — shared setup patternsWhat SKILL.md sets; muted values are Claude Code's defaults
playwright@cyotee is listed by cyotee/cyotee-claude-plugins — review the source before installing
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin playwright4 skills in this plugin
/playwright-fixturesThis skill should be used when writing Playwright fixtures for dApp tests — test.extend, mergeTests, wallet fixtures, Anvil clients, and page.evaluate helpers./playwright-overviewThis skill should be used when the user asks about "Playwright", "E2E browser tests", "@playwright/test", "playwright config", or needs to set up or run browser end-to-end tests for a web or dApp UI./playwright-webserverThis skill should be used when orchestrating Anvil, Hardhat node, or frontend servers from Playwright webServer config for DeFi E2E tests.Other plugins' skills for the same job