Skip to content

test(issues): match new metadata trigger label with count suffix#3011

Merged
Bohan-J merged 1 commit into
mainfrom
fix/issue-metadata-test-label
May 21, 2026
Merged

test(issues): match new metadata trigger label with count suffix#3011
Bohan-J merged 1 commit into
mainfrom
fix/issue-metadata-test-label

Conversation

@Bohan-J
Copy link
Copy Markdown
Collaborator

@Bohan-J Bohan-J commented May 21, 2026

Summary

  • Fix main CI: 2 tests in issue-detail.test.tsx regressed after feat(issues): align metadata trigger with sibling sections #3010 because the sidebar metadata trigger now reads "Metadata · N" instead of bare "Metadata", and the tests used an exact-name getByRole match.
  • Relax both assertions to /^Metadata\b/ — still anchors on the label, tolerates the count suffix.

Test plan

  • pnpm --filter @multica/views test — 723/723 pass locally

The sidebar metadata trigger now reads "Metadata · N" (#3010), so the
exact-name button query stopped matching and 2 tests went red on main.
Relax the assertion to `/^Metadata\b/` — still anchors on the label but
tolerates the count suffix.
@Bohan-J Bohan-J merged commit cb90249 into main May 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant