E2e check

From faizkhairi/claude-code-blueprint · View interactive version

E2e check is an AI agent skill from the GitHub repository faizkhairi/claude-code-blueprint. Run E2E tests or interactive browser verification. Triggers on: 'run e2e', 'e2e test', 'browser test', 'check in browser', 'verify UI', 'interactive test'.

How to use this skill

Skill file

Run E2E tests or perform interactive browser-based verification using Playwright.

Mode Detection

Parse $ARGUMENTS to determine mode:


Runner Mode

1. Detect project

From $ARGUMENTS or current working directory:

2. Pre-flight check

Check if the dev server is running on the expected port (read from CLAUDE.md or the project manifest):

Use: bash -c "curl -s -o /dev/null -w '%{http_code}' http://localhost:{port}/ 2>/dev/null" or equivalent.

If the server is NOT running:

3. Run tests

Run the E2E test command from CLAUDE.md or the project manifest (e.g., yarn test:e2e or npm run test:e2e for JS, or pytest tests/e2e for Python).

If a test filter was provided (e.g., auth), resolve it to the spec file path:

4. Parse output

Extract from Playwright output:

5. Report

E2E Test Results -- {project}
================================
Total: X | Passed: X | Failed: X | Skipped: X
Duration: Xs
Baseline: {expected from CLAUDE.md} tests

[If failures:]
FAILURES:
- {spec-file} > {test-name}: {error summary}

[If screenshots saved:]
Screenshots: test-results/{spec-file}/

6. On failure


Interactive Mode

Use Playwright MCP tools to manually verify a user journey in the browser.

1. Navigate

Use mcp__playwright__browser_navigate to open http://localhost:{port} (port from CLAUDE.md).

ALWAYS use localhost, NEVER 127.0.0.1 (cookie domain mismatch issues).

2. Default journey (if no specific flow in args)

  1. Navigate to login page
  2. Fill credentials using mcp__playwright__browser_fill_form (use dev test credentials from .env or .env.test)
  3. Submit login form via mcp__playwright__browser_click
  4. Wait for dashboard to load via mcp__playwright__browser_wait_for
  5. Take snapshot via mcp__playwright__browser_snapshot to verify dashboard renders data (not empty state)
  6. Navigate to a key page (e.g., main feature list, report list)
  7. Verify data is present (not loading spinner, not error)
  8. Take screenshot via mcp__playwright__browser_take_screenshot as evidence

3. Custom journey

If args specify a flow (e.g., --interactive reports), walk through that specific flow step by step using:

4. Report

Summarize:


Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.