Six guards that pass while proving nothing
Connections.redirects.test.tsx:17-26declares its OWN<TestRoutes>reproducing three routes by hand and renders that — it never importsAppRoutes.tsx. Deleting/skillsor/channelsfrom the real table leaves all three tests green. It asserts React Router works.navigation-settings-panels.spec.tscannot distinguish a panel from its chrome — it asserts on ansupplied by the ROUTE, not the panel, so it passes with the wrong panel rendered.
navigation-smoothness.spec.tsdeclares per-route markers and never uses them: three tests that look like route coverage assert nothing about routes.- The
/accountsredirect was unguarded — its test asserts only thatAccountsrendered, andAccountsis ALSO the element for/chat/:threadId?. Verified by deleting the redirect: the old test still passed. replacesemantics were untested on all nine<Navigate>redirects. Droppingreplaceleaves the retired path on the history stack, so Back returns to it and is redirected forward again — a one-word edit produces a back-button trap.- The embedding-state warning could stop rendering silently:
deriveSourcePipelineHealthis covered exhaustively (14 cases) but the JSX rendering its verdict was not. Neutering{ingestedOnly && (…)}to{false && (…)}left the ENTIRE repo green — a correct verdict computed into a void, which is the exact shape of the 2,581-chunks/0-embedded incident.
4, 5 and 6 are now covered by our PRs. 1, 2 and 3 are not.
Found during a fleet-wide e2e coverage pass. Severity P2, category ci.
Six guards that pass while proving nothing: tests that don't actually test the intended behavior, including tests that pass when redirects are deleted or rendering is neutered.
Labelled priority: p2.
Picking up the first one on this list.
Looks like all three cases in that file are already checked against the real route table in other tests, so I want to confirm that properly by deleting each redirect and watching which tests notice, then get rid of the copy that never does.
Triage: valid — Current review confirms this is a concrete, in-scope engineering issue or request: “Six guards that pass while proving nothing”. No complete resolution is evident in current main.
An update against current main:
- Resolved:
Connections.redirects.test.tsxand its private route copy were deleted (#6737). - Still open:
navigation-settings-panels.spec.tspasses on any marker anywhere in#root, not the panel's own heading. - Still open:
navigation-smoothness.spec.tsstill declares per-route markers and never uses them. Items 4-6 were already covered. @obchain, if you're still on this, 2 and 3 are what's left.