Skip to content

E2E Testing Hub

Overview

The E2E package (@kartuli/e2e) runs Playwright tests against the game client, backoffice client, Storybook, and web-docs-client. Suites are grouped under tests/ by app. BASE_URL is always set by the caller (root scripts locally, CI sets it per job).

In-repo README: tools/e2e/README.md — setup, Vercel protection bypass, and local testing.

Root scripts that apply

ScriptDescription
pnpm c:e2e:game-clientE2E vs game client (BASE_URL=http://localhost:3000)
pnpm c:e2e:backoffice-clientE2E vs backoffice (BASE_URL=http://localhost:3001)
pnpm c:e2e:storybookE2E vs Storybook (BASE_URL=http://localhost:6006)
pnpm c:e2e:web-docs-clientE2E vs web-docs (BASE_URL=http://localhost:4173)
pnpm e2eRun all E2E tests (caller must set BASE_URL or use root scripts per target)

See Root scripts for the full list.

CI/CD usage

  • CI/CD Staging — How E2E is invoked in staging (orchestrator validate-e2e; Next.js, Storybook, Web Docs workflows run E2E).
  • CI/CD Production — How E2E is invoked in production (game-client and backoffice-client production workflows run E2E after deploy).

References