Provides Playwright test patterns for resilient locators, Page Object Models, fixtures, web-first assertions, and network mocking. Must use when writing or modifying Playwright tests (.spec.ts, .test.ts files with @playwright/test imports).
88
82%
Does it follow best practices?
Impact
100%
1.36xAverage score across 3 eval scenarios
Passed
No known issues
Page Object Model structure and resilient locators
BasePage abstract class
100%
100%
safeClick method
0%
100%
safeFill method
0%
100%
debug package logging
0%
100%
Locators in constructor
100%
100%
getByRole locator used
100%
100%
getByLabel locator used
100%
100%
No CSS class selectors
0%
100%
No XPath selectors
100%
100%
Web-first assertions
100%
100%
No waitForTimeout
100%
100%
isLoaded method
0%
100%
Playwright CI configuration and project structure
Minimal reporter when CI set
100%
100%
CLAUDE env var in reporter
0%
100%
html reporter with open never
100%
100%
fullyParallel enabled
100%
100%
forbidOnly in CI
100%
100%
retries CI-conditional
100%
100%
workers CI-conditional
100%
100%
baseURL env var
0%
100%
trace on-first-retry
66%
100%
screenshot only-on-failure
100%
100%
video on-first-retry
66%
100%
fixtures directory
0%
100%
pages directory
0%
100%
helpers directory
0%
100%
playwright auth directory
100%
100%
Authentication setup, fixtures, and network mocking
API auth in setup
100%
100%
storageState saved
100%
100%
No UI login per test
100%
100%
Fixtures over beforeEach
100%
100%
Route mock before navigation
100%
100%
route.fulfill used
75%
100%
Per-test data isolation
87%
100%
data.factory.ts exists
100%
100%
Web-first assertions in tests
87%
100%
No waitForTimeout
100%
100%
Resilient locators
80%
100%
f772de4
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.