# V1-AWEB-103 — Redesign Playwright Signoff Coverage Spec

Implementation spec for the Phase 17.10 Playwright signoff coverage. Goal:
**Playwright tests that exercise the redesigned inbox, queue, detail, compare,
policy, incident, and dashboard states** so the redesign cannot regress
silently.

## Scope

Playwright specs that lock in the user-visible behaviour of the seven redesigned
surfaces named in the V1-AWEB-103 ticket description:

1. **Inbox** — `UnifiedInboxPanel` with V1-AWEB-094 master- detail split +
   V1-AWEB-095 dense table + V1-AWEB-096 filter input + V1-AWEB-100 bulk
   actions.
2. **Queue (per workspace)** — at least one queue per workspace category; covers
   `/review`, `/research-integrity`, `/privacy`, `/support`, `/trust-safety`,
   `/rights`.
3. **Detail (review)** — `/review/[reviewId]` with the right-edge action rail +
   V1-AWEB-097 consolidated `<AuditTimeline />`.
4. **Compare** — V1-AWEB-094 `<AdminCompareView />` rendering the V1-AWEB-085
   comparative-text section + V1-AWEB-097 `<TextDiff />`.
5. **Policy** — `PolicyBundleEditorPanel` typed-confirmation deploy modal
   (V1-AWEB-099 Pattern 3).
6. **Incident** — `/incidents` mitigate + close-postmortem typed-confirmation
   modal.
7. **Dashboard** — `/` operations dashboard with `WorkspaceSummaryCard` grid +
   `CopilotHealthPanel`.

## Per-surface signoff specs

Each spec runs at the canonical 1920×1080 viewport, using the shared
`seedAdminSession()` helper from
`apps/oshun/admin/e2e/support/admin-session.ts`.

### `redesign-inbox-signoff.spec.ts`

- master-detail split renders at ≥1280px;
- inline drawer side panel does not trap focus (operator can `j/k` while drawer
  open);
- bulk action bar appears when ≥1 row selected, executes declared actions, hides
  on clear;
- filter input parses `key:value` chunks; URL hash round-trips;
- copy-paste of the URL on a different operator's machine reproduces the same
  filter state.

### `redesign-queue-per-workspace-signoff.spec.ts`

- one happy-path flow per workspace category covering open → action →
  return-to-queue → cursor persists.

### `redesign-review-detail-signoff.spec.ts`

- right-edge action rail is sticky and always reachable;
- `<AuditTimeline />` consolidates the three legacy history panels into one
  chronological surface;
- `Approve next ⏎` shortcut advances to the next row in the active filter set.

### `redesign-compare-signoff.spec.ts`

- `<AdminCompareView />` renders left + right + centre verdict column;
- `<TextDiff />` highlights insertions in green, deletions in red on the
  V1-AWEB-085 comparative-text case;
- synchronised scroll keeps the columns aligned.

### `redesign-policy-deploy-signoff.spec.ts`

- typed-confirmation modal opens;
- destructive `Confirm` button does NOT auto-focus;
- typing the wrong bundle id keeps the button disabled;
- typing the correct id enables; Esc / backdrop / Cancel close.

### `redesign-incident-signoff.spec.ts`

- mitigate happy path;
- close-postmortem typed-confirmation modal behaves per V1-AWEB-099 Pattern 3.

### `redesign-dashboard-signoff.spec.ts`

- `WorkspaceSummaryCard` grid renders one card per category;
- `CopilotHealthPanel` shows accept / override / ignore rates
  - high-confidence override cohort.

## Implementation deliverables

1. The 7 spec files listed above under
   `apps/oshun/admin/e2e/redesign-*-signoff.spec.ts`.
2. Each spec imports the shared admin-session helpers and runs at viewport
   1920×1080 unless otherwise noted.
3. The full suite is wired into the existing Playwright project (no new project
   config needed).

## Acceptance criteria

- All 7 spec files exist; each lists its own assertions in a `test.describe()`
  block.
- The suite runs as part of the existing `playwright test` command without
  additional configuration.
- A successful run gates the V1-AWEB-103 ticket; a failure on any spec blocks
  signoff and the failing scenario goes back to the relevant V1-AWEB-09x ticket
  for fix.

## Out of scope

- Visual regression coverage (V1-AWEB-104 covers screenshots).
- Cross-browser coverage (Chromium-only as today; Safari / Firefox deferred).
- Mobile / tablet viewports (V1-AWEB-101 / V1-AWEB-102 cover the desktop-first
  product policy).
