According to Playwright Tag-Tests Docs
Tagging test looks like this:
test('My test @foo', async ({ page }) => {
// ...
});
But there is no mention of multi tagging.
I’m looking for something like:
test('My test @foo, bar', async ({ page }) => {});
or
test('My test @foo bar', async ({ page }) => {});
2
Answers
I've found a solution, and it's very simple and straight-forward, simply separate tags with space:
Execution:
There are two ways I am using multi tags
alternatively, the following
and then I use script to run them as following in package.json
if you don’t want to run it through scripts, you can use the following command in terminal