Skip to content

feat(test): support default tags via test.use() and project use#41785

Closed
403-html wants to merge 2 commits into
microsoft:mainfrom
403-html:feat-use-tag
Closed

feat(test): support default tags via test.use() and project use#41785
403-html wants to merge 2 commits into
microsoft:mainfrom
403-html:feat-use-tag

Conversation

@403-html

@403-html 403-html commented Jul 15, 2026

Copy link
Copy Markdown

Adds tag as a recognized option in test.use() and project.use, so default tags can be declared where fixtures live rather than repeated on every test.

// file-level
test.use({ tag: '@app1' });
test.use({ tag: ['@app1', '@app2'] });

// project-level
projects: [{ name: 'app1', use: { tag: '@app1' } }]
projects: [{ name: 'app1', use: { tag: ['@app1', '@app2'] } }]

Tags accumulate across all scopes (project → file → describe → test).

Closes #37128, closes #37683 (reopening since the idea was closed despite 7 upvotes)

@403-html

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@dgozman

dgozman commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

The issue is closed because playwright team decided it is not worth the complexity.

@dgozman dgozman closed this Jul 16, 2026
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.

[Feature]: Global tags [Feature]: default tags via test.use({ tag: [...] })

2 participants