Repository navigation
Description
Task
T-118· Milestone M8 — Dashboard · Size M · Priority P0 · Epic #8Implements FR-DSH-001 · FR-DSH-002 · FR-DSH-003 · FR-DSH-004 · FR-DSH-005 · FR-DSH-007
Branch
test/t-118-e2e-flows-create-campaign-live— one task = one branch = one PR (doc 32 §6)
Summary
Write Playwright specs for journeys J1/J3 on the real k2d stack: wizard create with defaults (small budget), live updates arrive within 2 s, first case appears in casebook, open medoid run, replay ×3 agrees, export report; atlas probe-here creates a manual run. Each spec runs axe on every visited route.
Context / motivation
M8 exit criterion: Playwright flows green; dashboard accessibility verified.
Scope
In scope
- One spec file per journey:
create-campaign.spec.ts,investigate-case.spec.ts,atlas-probe.spec.ts,trials.spec.ts.
Implementation guidance
- Specs (one per file, independently runnable):
create-campaign.spec.ts(wizard defaults, small budget from E2E config, start, console shows the first runs ≤ 2 s afterrun.finished);investigate-case.spec.ts(seeded campaign → casebook → open medoid → timelines/trajectory visible → Replay ×3 → three new runs with matching verdict → export report → report page renders);atlas-probe.spec.ts(open atlas → enlarge pair → probe here → manual run appears);trials.spec.ts(seeded experiment → comparison shows all strategies);controls.spec.ts(pause/resume/cancel transitions and disabled states). - Each spec calls
expectNoA11yViolationsafter every navigation and asserts no console errors or CSP violations. - Timings/budgets in
web/e2e/e2e.config.json; selectors use accessible roles/names (no CSS selectors), doubling as an accessibility check. - Standards: respect the layering contracts (doc 16 §2) and conventions in doc 34; no hard-coded tunables — thresholds/defaults come from typed settings (doc 27); no magic numbers (ruff
PLR2004); public APIs typed (mypy strict) and documented.
Acceptance criteria
- All specs green twice in a row (flake check); axe 0 serious/critical on every route.
- Each spec < 3 min on CI.
- No
waitForTimeoutcalls (lint ruleplaywright/no-wait-for-timeout). - Tests listed below added and green in CI; coverage of new code meets the gate in doc 18 §3.
- Docs, config reference and CHANGELOG
Unreleasedupdated where behaviour, keys or interfaces changed. - Definition of Done (doc 32 §3) satisfied.
Tests required
- The specs.
Dependencies
Blocked by: #186 (T-117), #170 (T-087b), #171 (T-088a), #172 (T-088b), #173 (T-089a), #175 (T-089c), #176 (T-110a), #179 (T-111b), #183 (T-113b)
Blocks: #188 (T-114), #213 (T-108)
Parallelization notes
Files / paths owned by this task — avoid editing other paths; shared files (pyproject.toml entry points, cli/main.py, api/routers/__init__.py, router.tsx, docker/compose.yaml, ci.yml) are append-only:
web/e2e/specs/**
Spec files may be split across agents.
Definition of Done
Per doc 32 §3 and AGENTS.md §5: lint, format, mypy strict and import-linter green; tests added and passing; docs updated; PR template completed with Closes #<this issue>; Conventional Commit messages referencing T-118 (doc 16 §6); commits authored only by the repository owner identity (AGENTS.md §4); CI green; reviewer checklist (doc 32 §5.1) satisfied.
References
Design docs: doc 13 §7 · doc 14 §1 · doc 26 §J1 · doc 18 §4.10
Requirements: FR-DSH-001 · FR-DSH-002 · FR-DSH-003 · FR-DSH-004 · FR-DSH-005 · FR-DSH-007 (traceability: doc 28)
External:
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsBacklog
Activity
e2e.ymlworkflow #186/meta) #170/reports/:idroute #183CodewithJha commentedon Nov 22, 2026
Shipped on main (Playwright E2E stack: #332, #330).
test(web): M8 Playwright E2E harness, journeys, and a11y gates (T-117…
fix(test): isolate browser runs and restore the report journey (T-117) (