patricio0312rev avatar

Cypress Playwright Setup

This sets up proper E2E testing infrastructure with either Cypress or Playwright, including page object models, fixtures for authenticated states, and CI-ready configurations. You get cross-browser testing configs, reusable page objects that abstract selectors, and fixture patterns that let you skip authentication in protected route tests. The Playwright setup includes parallel execution and retry logic, while the Cypress version adds Testing Library commands. Honestly, the page object pattern here is worth adopting even if you already have tests, it makes refactoring way less painful when your UI changes. Good for greenfield projects or teams moving from scattered test files to something maintainable.

skills.sh installs
309
GitHub stars
63
last updated
Aug 21, 2026

Install

$ npx -y skills add patricio0312rev/skills --skill cypress-playwright-setup --agent claude-code

Installs into .claude/skills of the current project.

Files

Cypress & Playwright Setup

Configure comprehensive end-to-end testing for web applications.

Core Workflow

  1. Choose tool: Cypress or Playwright
  2. Configure project: Browser and test settings
  3. Create page objects: Reusable selectors
  4. Write tests: User journey coverage
  5. Setup fixtures: Test data
  6. Integrate CI: Automated testing

Playwright Setup

Installation

npm init playwright@latest

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'],
    ['json', { outputFile: 'test-results/results.json' }],
    ['junit', { outputFile: 'test-results/junit.xml' }],
  ],

  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/patricio0312rev/skills
Categories
Testing & QA, Automation & Workflows
First seen
Jun 3, 2026

More from patricio0312rev/skills

All 138
1patricio0312rev avatare2e-test-builderpatricio0312rev/skillsBuilds end-to-end browser tests for critical user flows using Playwright or Cypress. Includes selector strategies, test data management, page objects, and visua269skills.sh installs
2giuseppe-trisciuoglio avatarunit-test-bean-validationgiuseppe-trisciuoglio/developer-kitProvides patterns for unit testing Jakarta Bean Validation (JSR-380), including @Valid, @NotNull, @Min, @Max, @Email constraints with Hibernate Validator. Gener5Kskills.sh installs
3giuseppe-trisciuoglio avatarunit-test-wiremock-rest-apigiuseppe-trisciuoglio/developer-kitProvides patterns for unit testing external REST APIs using WireMock. Stubs API responses, verifies request details, simulates failures (timeouts, 4xx/5xx error3.9Kskills.sh installs
4giuseppe-trisciuoglio avatarunit-test-application-eventsgiuseppe-trisciuoglio/developer-kitProvides patterns for unit testing Spring application events. Validates event publishing with ApplicationEventPublisher, tests @EventListener annotation behavio3.8Kskills.sh installs
5github avatarunit-test-vue-piniagithub/awesome-copilotWrite and review unit tests for Vue 3 + TypeScript + Vitest + Pinia codebases. Use when creating or updating tests for components, composables, and stores; mock1.8Kskills.sh installs
6bobmatnyc avatarwordpress-testing-qabobmatnyc/claude-mpm-skillsWordPress plugin and theme testing with PHPUnit integration tests, WP_Mock unit tests, PHPCS coding standards, and CI/CD workflows430skills.sh installs