The chat More-menu browser test fails on main #2148

Closed
opened 2026-11-27 08:04:25 +00:00 by sam · 1 comment
Owner

Why: ui/test/chat-more-menu.test.ts drives the dev server in headless Chrome and asserts the collapsed chat dock rendered. It fails on main at a23417f39 with collapsed.ready false, and it fails the same way with only #2121's commit applied, so it is not caused by that change. task check therefore never reaches green.

Done when: the test passes on main, or it skips when the browser it needs cannot attach, and task check completes.

**Why**: `ui/test/chat-more-menu.test.ts` drives the dev server in headless Chrome and asserts the collapsed chat dock rendered. It fails on main at a23417f39 with `collapsed.ready` false, and it fails the same way with only #2121's commit applied, so it is not caused by that change. `task check` therefore never reaches green. **Done when**: the test passes on main, or it skips when the browser it needs cannot attach, and `task check` completes.
sam added the bug label 2026-11-27 08:04:27 +00:00
sam added the high label 2026-11-27 08:04:41 +00:00
Author
Owner

Fixed in f1c595d39, and task check is green again on a clean worktree at that commit for the first time in this run.

The cause was #2121's page removal, not the browser harness: the sidebar specs kept naming pages that no longer exist, and entryFor throws on an address with no route, so the first render of the nav left the whole shell blank. The chat test was the only thing in the gate that renders the app, which is why it was the only failure.

Fixed by correcting the sidebar entries and moving them to ui/src/lib/nav-specs.ts (imports nothing) with ui/test/nav-specs.test.ts checking every address against the generated page catalogue, so a deleted page fails the gate instead of the browser.

Fixed in f1c595d39, and `task check` is green again on a clean worktree at that commit for the first time in this run. The cause was #2121's page removal, not the browser harness: the sidebar specs kept naming pages that no longer exist, and `entryFor` throws on an address with no route, so the first render of the nav left the whole shell blank. The chat test was the only thing in the gate that renders the app, which is why it was the only failure. Fixed by correcting the sidebar entries and moving them to `ui/src/lib/nav-specs.ts` (imports nothing) with `ui/test/nav-specs.test.ts` checking every address against the generated page catalogue, so a deleted page fails the gate instead of the browser.
sam closed this issue 2026-11-27 08:14:44 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#2148