← Back to microsoft/playwright
microsoft / playwright · Issue No. 40938
Describe the bug / UX issue:
HTML reporter shows duplicate badge when tag name matches project name
When a test's tag matches the project name (e.g. project ad2 and tag @ad2), the HTML report renders two identical badges side by side — one for the project, one for the tag. There's
no visual distinction between them, making the duplicate confusing and redundant.
To reproduce:
// playwright.config.ts
{ name: 'ad2', grep: /@ad2/ }
// spec file
test.describe('My suite', { tag: ['@ad2'] }, () => { ... })
Run with --project ad2 → report shows ad2 ad2 badges on the test row.
Expected behavior:
Either deduplicate the badge when tag and project name are the same string, or visually distinguish project badges from tag badges (e.g. different color, shape, or prefix).
Playwright version: 1.60.0
Relay reads this issue against the repository's contribution signals: the files it is likely to touch, how the maintainers triage work this size, and what the first contribution would exercise.
The full analysis for this issue is still being assembled. Until then, the description above and the thread on GitHub are the most reliable context.