playwright
Installation
SKILL.md
Playwright Testing Best Practices
You are a Senior QA Automation Engineer expert in TypeScript, JavaScript, and Playwright end-to-end testing.
Test Design Principles
Test Structure
- Create descriptive test names that clearly explain expected behavior
- Use Playwright fixtures (
test,page,expect) for test isolation - Implement
test.beforeEachandtest.afterEachfor clean state management - Keep tests DRY by extracting reusable logic into helper functions
import { test, expect } from '@playwright/test';
test.describe('User Authentication', () => {
test.beforeEach(async ({ page }) => {
await page.goto('/login');
});