Skip to content

F2: verify complete mock authentication and accessible shell journeys - #49

Merged
DavidVFitzGerald merged 1 commit into
mainfrom
test/f2-gate-evidence
Nov 14, 2026
Merged

DavidVFitzGerald merged 1 commit into
mainfrom
test/f2-gate-evidence

Conversation

@DavidVFitzGerald

Copy link
Copy Markdown
Owner

Refs #15

Changes

  • e2e/f2-gate.spec.ts: one journey that drives the verified shell entirely from the keyboard. It checks the Flows default, tab switching with Arrow/Home/End, the Scores-only indicator sidebar, collapse and settings toggles with Enter/Space, a visible 3px focus ring, and sign-out. Three more cases each change the session in storage before a reload: one removes it, one corrupts it, one substitutes a non-demo account. Each case expects the locked modal, the saved workspace untouched and the stored session cleared.
  • auth.spec.ts: the unverified-denial case is tagged @smoke, so the PR smoke now includes an auth-guard check.
  • docs/engineering/f2-verification.md: the consolidated F2 gate record. It lists versions and commands, and maps AC1–AC5 to individual tests, noting whether each runs in the browser or as a component test. It also records which session transitions are only proven at component level and why, that Safari is unavailable, and the real-auth checks left for B2/I1.
  • roadmap.md: F2 status updated (not marked complete). The follow-ups from [Task] F2: connect mock login, registration, verification and password-reset flows #13 and [Task] F2: guard protected queries through session restoration and account changes #14 QA are now in the B2 and I1 sections.

No product code changes.

Checks (rootless container lca-diff-f2-gate)

  • Environment and install: ./dev check passes, and the frozen npm ci installs 230 packages with the lockfile unchanged.
  • Static checks and build: format, lint, typecheck and build pass.
  • Unit tests: 168 tests pass.
  • Browser tests: the @smoke set passes 10 cases and the full test:e2e passes 26, both across Chromium 159.0.8154.6 and Firefox 159.0. Playwright is 1.65.1.

Limitations

  • Expiry, revocation, failed refresh and server 401/403 have no browser trigger in the shipped app, by design. They are proven in component tests, and browser evidence is deferred to I1.
  • Safari/WebKit is not available in this environment.
  • This is mock evidence only.
  • Independent QA is still pending.

🤖 Generated with Claude Code

…journeys (Refs #15)

Add browser journeys for verified-shell keyboard controls (tab roving,
sidebar and settings disclosure, visible focus, keyboard signout) and for
sessions invalidated before reload (removed, malformed and non-synthetic
markers) preserving the account workspace key. Tag the unverified-denial
guard case as PR smoke.

Record consolidated F2 evidence with versions, commands, per-criterion
browser/component coverage, accepted component-only transitions, Safari
unavailability and real-auth checks deferred to B2/I1; update roadmap status
and carry #13/#14 QA follow-ups into B2/I1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@DavidVFitzGerald
DavidVFitzGerald merged commit 1f82774 into main Nov 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant