Playwright end-to-end testing patterns including page object models, test scenarios, visual regression, and CI/CD integration. Use when building E2E tests, testing web applications, automating browser interactions, implementing page objects, running Playwright tests, debugging E2E failures, or when user mentions Playwright, E2E, browser automation, page object model, POM, visual regression, or end-to-end testing.
/plugin marketplace add vanman2024/dev-lifecycle-marketplace/plugin install testing@dev-lifecycle-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
examples/basic-usage.mdexamples/ci-cd-integration.mdexamples/debugging-techniques.mdexamples/page-object-pattern.mdexamples/visual-regression-testing.mdscripts/debug-playwright.shscripts/generate-pom.shscripts/init-playwright.shscripts/run-playwright.shscripts/run-visual-regression.shtemplates/e2e-test-form.spec.tstemplates/e2e-test-login.spec.tstemplates/page-object-advanced.tstemplates/page-object-basic.tstemplates/playwright.config.tstemplates/visual-regression.spec.tsCRITICAL: The description field above controls when Claude auto-loads this skill.
Provides comprehensive Playwright end-to-end testing patterns including:
Use scripts/init-playwright.sh to set up a new Playwright project:
bash scripts/init-playwright.sh [project-path]
This will:
Use scripts/generate-pom.sh to create Page Object Model classes:
bash scripts/generate-pom.sh <page-name> <url> [output-dir]
This will:
Use scripts/run-playwright.sh to execute tests:
bash scripts/run-playwright.sh [test-pattern] [browser] [options]
Options:
Use scripts/debug-playwright.sh for debugging:
bash scripts/debug-playwright.sh <test-file>
This will:
Use scripts/run-visual-regression.sh for visual testing:
bash scripts/run-visual-regression.sh [test-pattern] [update-snapshots]
This will:
class PageName {
readonly page: Page;
readonly locators: { /* selectors */ };
constructor(page: Page) { /* ... */ }
async navigateTo() { /* ... */ }
async performAction() { /* ... */ }
async verifyState() { /* ... */ }
}
Calculate portfolio risk metrics including VaR, CVaR, Sharpe, Sortino, and drawdown analysis. Use when measuring portfolio risk, implementing risk limits, or building risk monitoring systems.