0036-laravel-e2e-playwright

Community

Make Laravel Playwright E2E tests rock-solid.

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Laravel end-to-end tests often become flaky and slow because they rely on inconsistent state setup, fragile selectors, and UI-based authentication.

Core Features & Use Cases

  • Environment consistency: Use a dedicated .env.playwright and rebuild the database schema reliably with migrate:fresh --seed before running.
  • State & seed reliability: Add seeders for common scenarios and use factories for per-test setup while resetting state between specs.
  • Stable selectors and auth: Prefer data-testid over CSS paths, reuse Playwright storage state when possible, or create users via API/setup to avoid UI login flakiness.
  • Fast, diagnosable execution: Assert key milestones while splitting large flows into steps, and record videos/screenshots only on failure.

Quick Start

Run the Sail command sail pnpm playwright:test after ensuring you rebuild and seed your schema with migrate:fresh --seed using a dedicated .env.playwright.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 0036-laravel-e2e-playwright
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0036-laravel-e2e-playwright

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.