Skip to content

Instantly share code, notes, and snippets.

@pablocattaneo
Last active May 26, 2026 08:54
Show Gist options
  • Select an option

  • Save pablocattaneo/82780ee95349923ae0a21653ec4c1840 to your computer and use it in GitHub Desktop.

Select an option

Save pablocattaneo/82780ee95349923ae0a21653ec4c1840 to your computer and use it in GitHub Desktop.
// https://playwright.dev/docs/test-annotations#tag-tests
// To tag a test, either provide an additional details object when declaring a test, or add @-token to the test title. Note that tags must start with @ symbol.
import { test, expect } from '@playwright/test';
test.describe('group', {
tag: '@report',
}, () => {
test('test report header', async ({ page }) => {
// ...
});
test('test full report', {
tag: ['@slow', '@vrt'],
}, async ({ page }) => {
// ...
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment