E2e testing

From c9r-io/orchestrator · View interactive version

E2e testing is an AI agent skill from the GitHub repository c9r-io/orchestrator. Run and author the repository's Playwright E2E tests, validate critical user journeys, and stabilize flaky browser behavior using the actual GUI and service contract.

How to use this skill

Skill file

E2E Testing (Playwright)

Use the existing Playwright configuration and a small set of stable, behavior-focused journeys.

Repository Layout

Do not assume Docker Compose, Kubernetes, or a legacy portal tree. If a different target repository owns those surfaces, discover and verify them there first.

Run Existing Tests

cd gui
npm run test:e2e

Use the package's test:all script when unit, coverage, E2E, and build evidence are all required. Install browsers or packages only with user approval when the environment is missing them.

Authoring Tests

Example:

import { expect, test } from "@playwright/test";

test("critical control remains reachable", async ({ page }) => {
  await page.goto("/");
  await expect(page.getByRole("main")).toBeVisible();
});

Flake Triage

  1. Re-run the single failing spec with the same revision and server state.
  2. Inspect the retained trace and browser console.
  3. Replace timing assumptions and shared state with explicit conditions and setup.
  4. Re-run the single spec, then npm run test:e2e, then the relevant build/tests.

Never weaken an assertion or add retries without identifying the nondeterministic boundary.

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.