Skip to content
Back to skills

E2e Playwright

ASecurity

Generic E2E patterns with Playwright—state setup, seeds, test IDs, auth, environment, and Sail integration

  • 147 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
testingapi

Works with

  • api

Security analysis

A100/100

Scanned June 6, 2026

npx -y skills add jpcaparas/superpowers-laravel --skill e2e-playwright --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of E2e Playwright?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for E2e Playwright
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jpcaparas-e2e-playwright/badge)](https://www.skillsdirectory.com/skills/jpcaparas-e2e-playwright)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: laravel:e2e-playwright
description: Generic E2E patterns with Playwright—state setup, seeds, test IDs, auth, environment, and Sail integration
---

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.