The serv8 vertical's end-to-end suite. It drives the services and apps exactly like a real user: browser UI + the BFF proxy only - no
direct database access, no psql, no bypassed authorization (DESIGN.md §9).
Test state is built through real flows (sign-up, org/env creation, vertical
enroll, app install, role assignment, agent promotion), or the BFF proxy.
It is the top layer of the vertical's test pyramid. It proves that the services
and apps compose into the fourteen FitSM processes; it does not re-prove
that any single service works in isolation (that is each service's tests/).
serv8-e2e/
├── playwright.config.ts # browser matrix + base URL from SENTIN8_DOMAIN
├── fixtures/ # env, cli, harness, testdata, state, contracts, api
├── scripts/guard-no-backdoor.ts # fails the run on any direct DB/backend call
├── tests/
│ ├── global-setup.ts # org/env/vertical/apps/users through the CLI
│ ├── a_provisioning.spec.ts
│ ├── b_catalogue.spec.ts
│ ├── c_ticket_lifecycle.spec.ts
│ ├── … one file per scenario group (a..s)
└── docs/
├── SCENARIOS.md # the scenario catalogue - the contract
├── DESIGN.md # architecture of the suite
└── BUSINESS.md # what the suite proves to the business
npm ci
npx playwright install chromium
make test # type-check + guard + the full serial suite
make report # open the last HTML reportRequires a booted platform fleet and the tree-root .env defining
SENTIN8_DOMAIN (the suite derives every URL from it; there is no fallback
domain). It provisions its own org, environments, vertical, and app instances
in tests/global-setup.ts through the sentin8-cli binary.
- UI + BFF proxy only. A setup step that is impossible through the UI/API is a product gap to fix in the backend, never a reason to reach for SQL.
- No raw service ports, no
psql, no DSNs.scripts/guard-no-backdoor.tsfails the run when a spec reaches past the proxy. - URLs derive from
fixtures/testdata.ts. A hardcoded hostname is a defect. - No secrets in fixtures. Credentials come from the generated personas.
- Serial and stateful. Later groups read records earlier groups produced;
hand-off goes through
.e2e-state.json, never a shared cursor.
The complete set of scenarios - 19 groups, every service and every app - lives
in docs/SCENARIOS.md. Read it first: it is the contract
this suite implements, and it maps every scenario back to the business
requirement it proves.
Architecture & Design: serv8:e2e was designed by Hamid Jahanzad.