agentsclimarketplace

E2e playwright

Skill jpcaparas/superpowers-laravel/skills/e2e-playwright

Generic E2E patterns with Playwright—state setup, seeds, test IDs, auth, environment, and Sail integrationFrom its SKILL.md

Install
npx -y skills add jpcaparas/superpowers-laravel --skill e2e-playwright

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

0.9 KB, as published. Nobody here has run it

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

Keep looking

Skills are one crate of 621,573. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.