e2e-testing

Automate end-to-end UI testing with Playwright across browsers.

21|2|Updated Nov 5, 2023
One-click install
npx skills add https://github.com/sgcarstrends/sgcarstrends --skill e2e-testing-sgcarstrends
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: e2e-testing
Source: https://github.com/sgcarstrends/sgcarstrends/tree/main/.claude/skills/e2e-testing
Command: npx skills add https://github.com/sgcarstrends/sgcarstrends --skill e2e-testing-sgcarstrends

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables comprehensive end-to-end tests for user journeys, ensuring UI functionality and reliability across browsers.

Core Features & Use Cases

  • Playwright-based tests for pages, forms, and API integration.
  • Cross-browser coverage with multiple projects (Chromium, Firefox, WebKit, mobile simulators).
  • Visual regression hooks and test structure.

Quick Start

Add a simple test for the home page that asserts the title and navigation links.

Frequently Asked Questions about e2e-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate end-to-end UI testing with Playwright?

End-to-end testing with Playwright automates user flows by scripting browser interactions—clicks, form fills, navigation—and asserting UI state. Set up Playwright, define test files with page interactions and assertions, configure browser projects (Chromium, Firefox, WebKit), and run tests to validate complete journeys before production.

Can I test across multiple browsers with Playwright?

Playwright supports cross-browser testing through multiple projects configured for Chromium, Firefox, WebKit, and mobile simulators. Configure these in your test setup, and tests run against all specified browsers automatically, ensuring UI consistency across platforms.

What's the best way to catch visual regressions in UI tests?

Visual regression testing compares rendered pages against baseline screenshots to detect unintended visual changes. Playwright provides hooks and patterns to capture and assert visual state within test flows, catching layout, styling, and rendering issues before release.

Do I need TypeScript to use Playwright for testing?

TypeScript support is required for this Skill's test structure and patterns. While Playwright itself supports JavaScript, the Skill's implementation assumes TypeScript for type safety and scalable test organization, especially with page-object patterns.

How do I structure repeatable tests for form submissions and API calls from the UI?

Page-object patterns encapsulate page interactions and form logic into reusable components, reducing duplication. Structure tests to submit forms, intercept or validate API calls triggered by UI actions, and assert responses—enabling scalable, maintainable test suites for complex user journeys.

Can Playwright tests validate mobile responsiveness?

Playwright includes mobile simulator configurations that test responsive behavior on mobile viewports and devices. Configure mobile projects alongside desktop browsers to validate layouts, touch interactions, and mobile-specific UI across screen sizes and orientations.