/playwright:playwright-webserverfrom playwright
This skill should be used when orchestrating Anvil, Hardhat node, or frontend servers from Playwright webServer config for DeFi E2E tests.
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.
webServer starts dependencies before tests and can run multiple services.
// playwright.config.ts
webServer: [
{
command: 'anvil --block-time 1',
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,
env: {
// Point frontend RPC at local Anvil
VITE_RPC_URL: 'http://127.0.0.1:8545',
NEXT_PUBLIC_RPC_URL: 'http://127.0.0.1:8545',
},
},
],
| Need | How webServer helps |
|---|---|
| Idempotent chain | Fresh Anvil each CI run |
| No manual terminals | One playwright test boots stack |
| Local iteration | reuseExistingServer: !CI keeps your dev Anvil/app |
| Forked mainnet | anvil --fork-url $RPC --fork-block-number N |
{
command: `anvil --fork-url ${process.env.MAINNET_RPC_URL} --fork-block-number 19000000`,
url: 'http://127.0.0.1:8545',
reuseExistingServer: !process.env.CI,
}
Playwright waits until url returns success. For Anvil, http://127.0.0.1:8545 works with JSON-RPC. For apps, use the homepage or a /health route.
{
command: 'npx hardhat node',
url: 'http://127.0.0.1:8545',
reuseExistingServer: !process.env.CI,
}
Same fixture patterns apply; prefer Anvil for speed and Foundry cheatcode parity with Solidity tests.
reuseExistingServer: false in CI (default via !process.env.CI)31337, fixed mnemonic accounts| Symptom | Fix |
|---|---|
| Port in use | Kill stale anvil/node or enable reuse locally |
| App connects to wrong RPC | Pass RPC via webServer env |
| Timeout starting server | Raise timeout, check command logs with DEBUG=pw:webserver |
anvil-node (foundry plugin)defi-ui-testing-overview — full stack layoutWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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-configThis skill should be used when configuring Playwright for dApp/DeFi E2E — fullyParallel, workers, webServer, Chromium-only projects, baseURL, retries, and CI settings./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.