Skip to content

fix(html-reporter): drop tag badge that duplicates the project chip#40962

Open
adityasingh2400 wants to merge 1 commit into
microsoft:mainfrom
adityasingh2400:fix-40938
Open

fix(html-reporter): drop tag badge that duplicates the project chip#40962
adityasingh2400 wants to merge 1 commit into
microsoft:mainfrom
adityasingh2400:fix-40938

Conversation

@adityasingh2400
Copy link
Copy Markdown

Summary

  • HTML reporter rendered two identical badges side-by-side when a test tag (@ad2) matched the project name (ad2), because ProjectAndTagLabelsView always rendered the full test.tags list next to the project chip.
  • Strip any tag whose stripped-@ form equals the active project name before passing the list to the click view, so the duplicate disappears while non-matching tags still render.

Fixes #40938

When a test tag (e.g. @ad2) matches the active project name (e.g. project
"ad2"), the HTML report rendered two identical badges side by side because
ProjectAndTagLabelsView always rendered the full tag list next to the
project chip. Strip any tag whose name equals the active project name
(ignoring the leading @) before rendering the click view.

Fixes: microsoft#40938
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant