Skip to content

[T-118] E2E flows: create campaign → live console → casebook → run entry → replay → report; risk atlas probe-here #187

Closed

Description

@CodewithJha

Task T-118 · Milestone M8 — Dashboard · Size M · Priority P0 · Epic #8

Implements 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 after run.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 expectNoA11yViolations after 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 waitForTimeout calls (lint rule playwright/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 Unreleased updated 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:

Activity

  1. added this to the M8 — Dashboard milestone on Nov 19, 2026
  2. added
    type:testTest suites and test infrastructure
    area:evalEvaluation campaigns and success criteria
    priority:P0Critical path / blocks others
    taskChild task of a milestone epic
    on Nov 19, 2026
  3. CodewithJha commented on Nov 22, 2026

    @CodewithJha
    OwnerAuthor

    Shipped on main (Playwright E2E stack: #332, #330).

  4. added a commit that references this issue on Nov 22, 2026
    9669e5f
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

    area:dashboardReact web dashboardarea:evalEvaluation campaigns and success criteriamilestone:M8M8 — Dashboardpriority:P0Critical path / blocks otherssize:M1-3 daystaskChild task of a milestone epictype:testTest suites and test infrastructure

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions