playwright-test
SKILL.md
Playwright Test Skill
When writing end-to-end tests with Playwright:
File Location
- Place all E2E tests in the
e2edirectory. - Name files with the
.spec.tssuffix (e.g.,e2e/login.spec.ts).
Test Structure
import { test, expect } from '@playwright/test';
test.describe('Feature Name', () => {
test.beforeEach(async ({ page }) => {
// Setup (e.g., login or navigation)
});