agentsclimarketplace

Mern e2e

Skill edfenton/claude-skills/mern/mern-e2e

Manage Playwright E2E tests for critical user journeys.From its SKILL.md

Install
npx -y skills add edfenton/claude-skills --skill mern-e2e

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

2 things to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
  • runs commandsInstructs the agent to run 5 commands, including `pnpm test:e2e` and 4 more.

SKILL.md

2.8 KB, 691 tokens by cl100k_base, as published. Nobody here has run it

Purpose

Create, run, and maintain E2E tests for critical user flows using Playwright.

Arguments

  • --add <journey> — Create new journey test (e.g., signup-flow, checkout)
  • --run — Run all E2E tests
  • --run <pattern> — Run tests matching pattern
  • --report — Generate and display HTML report
  • --fix — Fix flaky tests with approval

Test organization

apps/web/e2e/
├── journeys/              # User journey tests
│   ├── auth.spec.ts       # Sign up, sign in, sign out
│   ├── onboarding.spec.ts # First-time user flow
│   └── <feature>.spec.ts  # Feature-specific journeys
├── fixtures/              # Test fixtures and helpers
│   ├── auth.ts            # Auth helpers (login as user)
│   └── db.ts              # Database seeding
├── pages/                 # Page Object Models
│   ├── HomePage.ts
│   └── SettingsPage.ts
└── playwright.config.ts   # Playwright configuration

Journey naming

  • auth — Authentication flows (signup, signin, signout, password reset)
  • onboarding — First-time user experience
  • <feature>-crud — Create, read, update, delete for a feature
  • <feature>-workflow — Multi-step workflows
  • checkout — Payment/purchase flows
  • settings — User settings and preferences

Commands

# Run all E2E tests
pnpm test:e2e

# Run specific journey
pnpm test:e2e --grep "auth"

# Run in headed mode (watch)
pnpm test:e2e --headed

# Run with UI mode
pnpm test:e2e --ui

# Generate report
pnpm test:e2e --reporter=html && npx playwright show-report

Workflow

Adding a journey (--add)

  1. Create test file in e2e/journeys/<journey>.spec.ts
  2. Create page objects if needed
  3. Add fixtures for test data
  4. Run to verify
  5. Add to CI if not already included

Running tests (--run)

  1. Ensure dev server is running or use webServer config
  2. Execute tests
  3. Report results with pass/fail counts
  4. Highlight flaky tests (passed on retry)

Fixing flaky tests (--fix)

  1. Identify flaky tests from reports
  2. Analyze failure patterns
  3. Propose fixes (with approval):
    • Add explicit waits
    • Improve selectors
    • Fix race conditions
    • Mock unstable dependencies
  4. Re-run to confirm fix

Best practices enforced

  • Use data-testid for stable selectors
  • Avoid time-based waits (page.waitForTimeout)
  • Isolate tests (no shared state)
  • Reset database state between tests
  • Use page object models for reusability

Output

  • Test results (pass/fail/flaky counts)
  • Failure details with screenshots
  • Report location

Reference

For Playwright setup and patterns, see reference/mern-e2e-reference.md

What ships with it: 1 file

11.3 KB alongside SKILL.md

reference/

Keep looking

Skills are one crate of 325,949. 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.