Repository navigation
test: prune UI tests that can't catch a bug, fix two that couldn't fail - #1957
Conversation
Walkthrough
Merge Risk:
|
Maple review🟢 Confidence 10/10 · safe to merge Test-only cleanup: drops lab and ELK option-pin tests and rewrites two assertions that could never fail. Both rewritten checks are sound against the current code; safe to merge.
What was checked
|
Maple review🟢 Confidence 10/10 · safe to merge The follow-up commit drops
What was checked
|
…ot fail - Remove three dev-lab tests that only re-check message forwarding the real components already test (service-map-3d, timeline, gcp-filter labs). - Remove the local log sheet tooltip test, which re-ran the shared Tooltip open sequence already covered by its own scene test. - Drop ELK layout option pins (aspect ratio, thoroughness, ordering) that only restate config; keep the flat vs namespaced and large-graph switch checks. - legend slot: the first-render test asserted String(boolean) is non-empty; it now records the hook's first answer and expects true. - local traces: "rows render" matched the text "1"; it now finds the row link.
965ce2d to
4650952
Compare
Maple review🟢 Confidence 10/10 · safe to merge Removes UI tests that duplicated covered behaviour or pinned layout option strings, and replaces two assertions that could never fail with ones that can. Test-only and safe to merge. What was checked
|
From an audit of the UI test suites (apps/web, apps/local-ui, packages/ui). The suites are mostly solid, so this only removes tests that duplicate coverage or pin config, and fixes two assertions that could never fail.
Removed
apps/web/src/lab/{service-map-3d-lab,timeline-lab,gcp-filter-lab}tests: dev-only lab pages; each test only re-checks message forwarding into a component whose own tests already cover it. The other lab tests stay, since they check lab-specific behaviour (no API reads leak, pivot sync, stale reload spins).apps/local-uilog sheet "opens its tooltip": re-ran the shared Tooltip open sequence, covered byapps/web/src/ui/tooltip.scene.test.ts.service-map-elk.test.ts: option-string pins (aspect ratio, thoroughness, ordering strategies) that break on deliberate layout tuning. The flat vs namespaced graph and >300 node strategy switch checks stay.Fixed
legend-slot-hoisting.browser.test.tsx"answers during the first render": assertedString(boolean)was non-empty, which is always true. It now records the hook's first-render answer and expectstrue.apps/local-uitraces "rows render": matched the text"1", present on almost any page. It now finds the row'sTrace GET /link.Verification
Ran each touched file: local-ui log-sheet + traces scene tests (14 passed), packages/ui ELK node test + legend-slot browser test (14 passed). oxlint shows one existing warning in the legend file (
LoopHost, already on main).Follow-ups not in this PR: most write-command scene tests check only the command name, not its args, and several threshold tests sit far from their cutoff.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit