Skip to content

test: 13 red orphan unit tests + 4 orphan E2E files left after #187; collapsed packet groups show an up-caret #189

Description

@dborup

Summary

PR #187 (the #174 follow-up) wires test-all.sh into CI. It registers 45 green orphan root tests and repairs 3 more. 13 orphan unit tests and 4 orphan E2E files are still red. They stay on test-all.sh's known-unregistered list until they are fixed or deleted. #187's PR description has the full table with the first failure and the traced cause. This issue tracks fixing them.

It also covers one small UI bug that the same work found.

Relates to #174, #187.

Red unit tests (state on master, causes traced in #187)

File First failure Likely cause Suggested action
test-channel-colors.js GRP_TXT row should have left border (19/2) 68a4628e (Kpa-clawbot#675) changed row style to a 3px border only Update expectation
test-channel-ux-followup.js hint points at ✕ (28/1) b812a98a (Kpa-clawbot#1648 M3) reworded to "Use the close button…" Update expectation
test-channel-ux-round2.js '📤 Share' label (13/1) b812a98a: now #ph-share-network sprite + " Share" Update expectation
test-drag-manager.js Escape during drag reverts corner (18/1) 2b45f787 (Kpa-clawbot#1567) uses removeAttribute('data-dragged'); the mock does not update dataset Fix the mock
test-fluid-scaffolding.js --space-xs declared with clamp() (2/13) f0addfda (Kpa-clawbot#1668) added an earlier :root block; the test reads only the first Parse all :root blocks
test-hop-resolver-affinity.js expected NodeA (geo-closest), got NodeB (16/1) 2b9f3056 (Kpa-clawbot#874) haversine: NodeB really is closer (70.88 vs 71.06 km) Fix the fixture coordinates
test-issue-1470-card-bg-contrast.js dark block sets --card-bg: not found (9/1) e2212f50 (Kpa-clawbot#1627) added a CSS comment containing [data-theme="dark"] Make the parser skip comments
test-issue-1646-compare-polish.js .compare-vs font-size could not parse (13/1) d954ea74 (Kpa-clawbot#1668 M5) added a comment with font-size:10px Make the parser skip comments
test-packets.js getDetailPreview handles CHAN type (115/13) 30627454 (Kpa-clawbot#1648 M2): 13 emoji assertions; the code renders #ph-* sprites now Update the 13 expectations
test-perf-disk-io-1120.js WAL >100 MB fires ⚠️ flag (10/5) 30627454 (⚠️ → #ph-warning); the backfill cases target the old detector that a26a412c (Kpa-clawbot#1593) replaced Rework
test-table-sort.js Cannot find module 'jsdom' jsdom is not a dependency Port to vm or delete
test-marker-outline-weight.js Playwright Test runner not installed (ESM spec) Needs @playwright/test and a server Port to plain playwright or delete
test-touch-targets.js .nav-btn 44×44, expected ≥48×48 (5 failures) Test from eaf14a61 (Kpa-clawbot#1060, 48px); current CSS is 44px. The house rule (Kpa-clawbot#2052) says 48 Decide 48 vs 44, then fix CSS or test

Red or unregistered E2E files

File Problem Suggested action
test-channel-modal-e2e.js 12/2: button text is now "+ Add"; "three sections" times out (Kpa-clawbot#1376 chat-app sidebar) Update and register
test-node-reach-e2e.js Timeout waiting for #nqMap .leaflet-container Check overlap with test-node-reach-coverage-e2e.js (already in CI); fix or delete
test-issue-1522-trace-url-sync-e2e.js Needs the Playwright Test runner Port to plain playwright or delete
test-path-inspector-e2e.js Same test-path-inspector-coverage-e2e.js already runs; likely delete

test-rx-coverage-mobile-nav-e2e.js is skipped on purpose: the fixture has clientRxCoverage off, as documented in deploy.yml.

UI bug: collapsed packet groups show an up-caret

public/packets.js ~2359 (master bedbe1f1): a collapsed group header renders #ph-caret-up (▲), and an expanded one renders #ph-caret-down. Before 30627454 (Kpa-clawbot#1648 M2, the emoji → Phosphor migration), a collapsed row showed ▶. The collapsed state should use a right-pointing caret (ph-caret-right) or whatever matches the expand affordance elsewhere. Seen in the source only; not checked in a browser.

Acceptance

  • For every file: fix it (with a mutant that turns it red), or delete it and name the test that covers the same thing. When fixed, remove it from KNOWN_UNREGISTERED in test-test-all.js and register it in test-all.sh or the Playwright step.
  • The test-touch-targets.js decision (48 vs 44 px) is recorded.
  • The caret fix has a test. Do not touch public/packets.js while another open PR edits it.
  • No new npm dependencies. Fork guards unchanged.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions