E2e automation project

From makifbaysal/tasktrooper · View interactive version

E2e automation project is an AI agent skill from the GitHub repository makifbaysal/tasktrooper. Maintain a dedicated automation test project per repository - separate from the product's unit tests - with API, worker, and UI suites written scenario-first

How to use this skill

Skill file

E2E Automation Project

Overview

Every repository worth testing gets a dedicated automation test project: a separate project that exercises the real product through its public surface and can be re-run on every change. It is not the product's unit-test folder and never mixes into it — it has its own dependencies, its own entrypoint, and runs in the repository's own pipeline (automation-pipeline-integration).

Core principle: scenarios before code (scenario-plan-first). A suite written without a scenario list tests whatever was easy, not what matters. And automation follows the manual pass: you automate the scenarios you have already executed and understood by hand.

Structure

One automation project per repository, following the project's convention — default qa-automation/ at the repo root (a sibling repo also works):

qa-automation/
  scenarios/        # the human-readable scenario lists, one file per feature
  api/              # backend API suite: HTTP client + assertions
  worker/           # async job suite: trigger → poll → assert side effects
  ui/               # frontend suite: Playwright against the built app
  fixtures/         # seed data
  support/          # helpers, page objects, request builders, stub mappings
  scripts/e2e.sh    # single entrypoint: provision, run all suites, teardown

| Surface | Tool (follow the project's existing choice) |

|---------|---------------------------------------------|

| REST API | the language's HTTP test client + assertions (Playwright APIRequest, RestAssured, supertest, Go net/http + testify) |

| Worker / async jobs | same test runner; triggers through the product path, polls for side effects (worker-job-testing) |

| Web UI | Playwright (preferred) / Cypress — headless Chromium via executablePath: process.env.CHROME_BIN, no browser download |

Mobile automation is out of scope for now — do not scaffold a mobile suite.

Determinism

The Workflow

  1. Author scenarios first for the feature: happy path, boundary, negative, auth/permission, key regressions — committed under scenarios/ and posted on the task.
  2. Stand up the environment through the entrypoint script, never by hand-managed local state.
  3. Implement one test per scenario, named for the behavior (export_forbidden_for_other_tenant), reading like the scenario via page objects / request helpers.
  4. Run the whole suite, read the output, capture failure artifacts (screenshots, traces, logs) as evidence.
  5. Wire it into the pipeline if not already (automation-pipeline-integration) — a suite outside the pipeline enforces nothing.

Worked Example

Feature: task export to CSV.

Common Mistakes

Red Flags

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.