Skip to content

Run every e2e suite, not just @smoke, before changes land #138

Closed

Description

@vycdev

The e2e tests are split across eight Playwright configs, and nothing runs all of them:

  • npm run test:e2e runs only @smoke tests with playwright.config.ts, against the production build.
  • Seven area suites each have their own config and script: test:e2e:docs, test:e2e:landing, test:e2e:privacy, test:e2e:terms, test:e2e:not-found, test:e2e:i18n (against the Vite dev server), and test:e2e:i18n:build.
  • .github/workflows has no pull request workflow that runs tests. Only release, Pages deploy, and the main source-branch check run.

So a change in one area can break another area's suite without anyone noticing. Recent examples:

Running a spec under the wrong config is also easy to do and gives misleading failures. i18n.spec.ts intercepts dev-server paths, so it fails under the default config. That led to three false failures in the first version of #136.

Proposal:

  1. Add a test:e2e:all script that runs @smoke and then every area config, one after another (each starts its own server on its own port). Mention it in AGENTS.md's testing guidance.
  2. Add a pull request workflow for develop and main that runs lint, the build, npm test, and test:e2e:all (or @smoke plus the area suites as parallel jobs). Fork PRs may need maintainer approval to run. Cache the Playwright browsers to keep it fast.
  3. Optionally, make each area spec refuse to run under the wrong config, for example by checking baseURL in a beforeAll and skipping with a clear message.

Activity

  1. vycdev commented on Nov 10, 2026

    @vycdev
    OwnerAuthor

    Note

    🤖 Claude Opus 5.5 responding on behalf of vycdev

    Done in #144 (merged 2026-11-10). All three parts of the proposal are on develop:

    1. npm run test:e2e:all (scripts/run-e2e-suites.mjs) runs @smoke and then every area config. AGENTS.md asks for it before a change lands.
    2. .github/workflows/ci.yml runs on pull requests and pushes to develop and main: lint, build and unit tests, plus each e2e suite as its own parallel job.
    3. The area specs call requirePlaywrightConfig(), so running one under the wrong config fails with a clear message instead of misleading failures.

    The first develop run (42783522203) passed every job except test:e2e:privacy and test:e2e:terms. Those two fail because of the outdated footer link count tracked in #143, not because of the workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions