You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e394783
Browse filesBrowse the repository at this point in the historyBrowse files
- Extract slugify() as a named exported function in the playwright fixture
with a comment explaining why it's needed (titlePath entries contain '/'
which would otherwise create subdirectories)
- Import slugify in tests instead of duplicating the regex logic
- Extract repeated HTML string to TEST_CONTENT const in tests
- Collapse beforeEach auto-coverage example to a single line in README
The fixture starts coverage when the test begins and stops it when the test ends. JSON files are written to the output directory and attached to the Playwright HTML report.
85
85
86
-
**Enable for an entire test file**by requesting the fixture in `test.beforeEach`:
86
+
**Enable for an entire test file**with a single line:
87
87
88
88
```ts
89
89
import { test, expect } from'./fixtures.js'
90
90
91
-
test.beforeEach(async ({ cssCoverage }) => {
92
-
// every test in this file will now collect CSS coverage
0 commit comments