Skip to content

Dashboard e2e group: the two unit tests read the declared case count instead of repeating it #611

Closed

Description

@SSFSKIM

What

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

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Nov 13, 2026
  2. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 20, 2026
  3. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: batch 7, group D

  4. added
    status:in-review
    and removed
    status:in-progress
    on Nov 20, 2026
  5. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: batch 7, PR #804

  6. removed
    status:in-review
    on Nov 20, 2026
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

    enhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions