alinaqi avatar

Playwright Testing

This handles Playwright test setup with a solid foundation: Page Object Model architecture, role-based locators that prioritize accessibility, and global authentication that saves login state across tests. You get cross-browser configs for desktop and mobile viewports, CI/CD defaults with retries and reporters, and a project structure that separates pages, fixtures, and test data. The locator strategy is smart, favoring getByRole and getByLabel over brittle CSS selectors. Worth using when you're starting E2E testing or refactoring a messy test suite, though you'll still need to adapt the page objects to your actual application.

skills.sh installs
2.5K
GitHub stars
702
last updated
Jul 14, 2026

Install

$ npx -y skills add alinaqi/claude-bootstrap --skill playwright-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

Playwright E2E Testing Skill

For end-to-end testing of web applications with Playwright - cross-browser, fast, reliable.

Sources: Playwright Best Practices | Playwright Docs | Better Stack Guide


Setup

Installation

# New project
npm init playwright@latest

# Existing project
npm install -D @playwright/test
npx playwright install

Configuration

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
  testDir: './e2e',
  fullyParallel: true,
  forbidOnly: !!process.env.CI,
  retries: process.env.CI ? 2 : 0,
  workers: process.env.CI ? 1 : undefined,
  reporter: [
    ['html'],
    ['list'],
    process.env.CI ? ['github'] : ['line'],
  ],

  use: {
    baseURL: process.env.BASE_URL || 'http://localhost:3000',
    trace: 'on-first-retry',
    screenshot: 'only-on-failure',
    video: 'retain-on-failure',
  },

Sponsors

Details

Repository
github.com/alinaqi/claude-bootstrap
Category
Testing & QA
First seen
Apr 16, 2026

More from alinaqi/claude-bootstrap

All 54
1manutej avatarplaywright-visual-testingmanutej/luxor-claude-marketplaceBrowser automation, visual testing, and screenshot validation using Playwright MCP server for accelerated web development. Master visual regression testing, aut1.4Kskills.sh installs
2secondsky avatarvitest-testingsecondsky/claude-skillsModern TypeScript/JavaScript testing with Vitest. Fast unit and integration tests, native ESM support, Vite-powered HMR, and comprehensive mocking. Use for test1.3Kskills.sh installs
3am-will avatartdd-test-writeram-will/codex-skillsWrites failing tests first for test-driven development and hands off a strict implementation contract that requires agents to make those tests pass without weak857skills.sh installs
4sickn33 avatarunit-testing-test-generatesickn33/antigravity-awesome-skillsunit testing test generate431skills.sh installs
5onewave-ai avatartest-coverage-improveronewave-ai/claude-skillsAnalyze test coverage gaps and generate tests to improve coverage. Use when improving test coverage, finding untested code, or writing missing tests.306skills.sh installs
6erichowens avatarvitest-testing-patternserichowens/some_claude_skillsvitest testing patterns252skills.sh installs