New advertisers: 50% off your first month with code FIRSTMONTHSee slots
alinaqi avatar

Playwright Testing

Playwright E2E testing skill covering page objects, locator strategy, auth setup, and cross-browser CI configuration.

skills.sh installs
2.5K
GitHub stars
713
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers E2E workflow setup: project install, playwright.config.ts, locator strategy, page object model, and authentication fixtures
  • Includes cross-browser projects for Chromium, Firefox, WebKit, plus Pixel 5 and iPhone 12 mobile viewports
  • Enforces role-based and test-ID locators over CSS and XPath, with CI retries, forbidden .only, and trace on first retry
  • Designed for teams writing or debugging Playwright specs in projects with a playwright or e2e directory

Install

$ npx -y skills add alinaqi/maggy --skill playwright-testing -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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',
  },

Details

Repository
github.com/alinaqi/maggy
Categories
Testing & QA, Browser Automation & Scraping
First seen
Apr 16, 2026

More from alinaqi/maggy

All 54

Similar to Playwright Testing

More Testing & QA