Skip to content

Demo verification: E2E bug fix, Lighthouse fixes, screenshots#7

Merged
Sarthak195 merged 2 commits into
mainfrom
demo-verification
Jul 15, 2026
Merged

Demo verification: E2E bug fix, Lighthouse fixes, screenshots#7
Sarthak195 merged 2 commits into
mainfrom
demo-verification

Conversation

@Sarthak195

Copy link
Copy Markdown
Owner

Verification-focused pass to de-risk the live demo before submission.

End-to-end walkthrough (found a real bug)

  • Added scripts/e2e-walkthrough.mjs (npm run e2e) — Playwright drives every flow (incident triage, briefing, copilot, emergency evacuation, staff, tournament) with real AI, asserting each + capturing screenshots. All 8 flows pass.
  • Bug fixed: closing the Ops Briefing/handover overlay while it was still generating popped it back open when Gemini resolved (unconditional setDoc), and its backdrop then blocked other controls. Now the result only surfaces if the operator hasn't closed the overlay.

Lighthouse (live URL)

  • Performance 94 · Accessibility 100 · Best Practices 92 · SEO 100.
  • Fixed the Best-Practices ding: the CSP blocked Google Maps' fonts (fonts.googleapis.com), logging console errors. Allowed the Google font hosts in style-src/font-src.

Polish + tests

  • README Screenshots section (ops room, emergency evacuation, staff console).
  • theme.ts unit tests. 85 → 90 tests.

Verified: format/lint/typecheck clean · 90 tests · build succeeds · axe 0 violations · Lighthouse A11y 100.

E2E (Playwright) walkthrough of every flow surfaced a real bug: closing the
Ops Briefing / handover overlay while it was still generating would pop it
back open when the Gemini call resolved (its setDoc fired unconditionally),
and the lingering backdrop then blocked other controls. Guard the completion
so it only surfaces if the operator hasn't already closed the overlay.

Adds scripts/e2e-walkthrough.mjs (npm run e2e) — drives incident triage,
briefing, copilot, emergency evacuation, staff, and tournament flows with
real AI, asserting each and capturing screenshots. All 8 flows pass.
- CSP: allow fonts.googleapis.com / fonts.gstatic.com so Google Maps fonts
  load — removes the console-error CSP violations Lighthouse flagged
  (Best Practices). Live Lighthouse: Perf 94 / A11y 100 / BP 92 / SEO 100.
- README: add a Screenshots section (ops room, emergency evacuation, staff
  console) captured from the E2E walkthrough.
- Add theme.ts unit tests (densityState bands, phase labels, severity/
  congestion maps). 85 -> 90 tests.
@Sarthak195
Sarthak195 merged commit 0f07b34 into main Jul 15, 2026
1 check passed
@Sarthak195
Sarthak195 deleted the demo-verification branch July 15, 2026 17:38
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