You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dashboard e2e group: the two unit tests read the declared case count instead of repeating it #611
The dashboard e2e group declares how many cases each of its spec files holds (e2e/support/dashboard-acceptance.ts, e.g. { file: 'dashboard.spec.ts', tests: 7 }), so that a case that stops being collected is reported as "N cases of the declared M". That declaration is the guard and stays.
Two unit tests repeat the declared number as a literal inside an expected message:
test/support/final-invocation.test.ts ('dashboard.spec.ts: 6 cases of the declared 7')
test/support/final-bundle.test.ts (the same string)
So a landing that adds a case to e2e/dashboard.spec.ts edits three files, and two such landings conflict on all three at merge. UX wave U10a (#582) met this when its three gap-caret cases took the count from 4 to 7.
Change
In the two unit tests, build the expected message from the declaration (read the entry for dashboard.spec.ts from dashboard-acceptance.ts; expect ${declared - 1} cases of the declared ${declared}), so that adding a case edits the declaration alone.
Acceptance
Changing tests for dashboard.spec.ts in e2e/support/dashboard-acceptance.ts needs no edit in test/support/.
Both tests still fail when the reporter's message drops or miscounts a case (show it by a temporary wrong count).
Not in scope
Deriving the declared counts from the spec files: the declaration is an independent claim on purpose.
Source: the residue of UX wave U10a's build (hand-back of 2026-11-13 UTC). Buildable after #582 is on master.
Activity
Dashboard group's unit tests read the declared case count instead of …
SSFSKIM commentedon Nov 20, 2026
[board] in-progress: batch 7, group D
SSFSKIM commentedon Nov 20, 2026
[board] in-review: batch 7, PR #804