Test e2e

From WaterplanAI/agentic-config · View interactive version

Test e2e is an AI agent skill from the GitHub repository WaterplanAI/agentic-config. Executes E2E tests from definition files with Playwright browser automation. Triggers on keywords: test e2e, run e2e, execute e2e test, e2e test runner

How to use this skill

Skill file

E2E Test Runner

Execute E2E test steps from a test definition file.

Test File: $1

Base URL: $2 (default: http://localhost:${DEFAULT_PORT:-5173}/)

Pre-Flight Checks

  1. Verify Test File Exists
  1. Verify playwright-cli Installed
  1. Parse Test Definition

Execution

  1. Initialize Test Session
  1. Navigate to Base URL
  1. Execute Test Steps

a. Parse step action (Navigate, Verify, Click, Fill, Type, Screenshot)

b. Execute action using appropriate playwright-cli command:

c. If step includes "screenshot": capture and save

d. If step includes "verify": validate condition

e. On failure: record error and continue to capture state

  1. Validate Success Criteria
  1. Generate Result JSON

Output Format

Return JSON result:

{
  "test_name": "<name from test file>",
  "status": "passed|failed",
  "timestamp": "<ISO timestamp>",
  "duration_ms": <number>,
  "steps": [
    {"step": 1, "action": "navigate", "status": "passed"},
    {"step": 2, "action": "verify", "status": "passed"}
  ],
  "screenshots": [
    "{PROJECT_ROOT}/outputs/e2e/<test-name>/01_initial.png"
  ],
  "video": "{PROJECT_ROOT}/outputs/e2e/<timestamp>-<test-name>.webm",
  "error": null
}

Error Handling

CLI Commands Used

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.