laravel:e2e-playwright

E2E Playwright (Laravel)

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "laravel:e2e-playwright" with this command: npx skills add jpcaparas/superpowers-laravel/jpcaparas-superpowers-laravel-laravel-e2e-playwright

E2E Playwright (Laravel)

Keep E2E tests reliable, fast, and maintainable.

Environment

Sail

sail pnpm playwright:test

Non‑Sail

pnpm playwright:test

Use a dedicated .env.playwright and rebuild schema with migrate:fresh --seed before running.

State & Seeds

  • Provide seeders for common scenarios (users, roles, demo content)

  • Use factories for per‑test setup; reset state between specs

Test IDs & Selectors

  • Prefer data-testid attributes over CSS paths

  • Keep selectors stable through refactors

Auth

  • Reuse storage state when possible (logged‑in cookies/session)

  • Otherwise create user via API/setup to avoid UI login flakiness

Patterns

  • Break large flows into steps; assert key milestones

  • Record videos/screenshots only on failure to keep suites fast

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

laravel:routes-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:blade-components-and-layouts

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:queues-and-horizon

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:tdd-with-pest

No summary provided by upstream source.

Repository SourceNeeds Review