e2e-testing
Installation
SKILL.md
E2E Testing with Playwright 1.57+
Validate critical user journeys end-to-end with AI-assisted test generation.
Quick Reference - Semantic Locators
// ✅ PREFERRED: Role-based locators (most resilient)
await page.getByRole('button', { name: 'Add to cart' }).click();
await page.getByRole('link', { name: 'Checkout' }).click();
// ✅ GOOD: Label-based for form controls
await page.getByLabel('Email').fill('test@example.com');
// ✅ ACCEPTABLE: Test IDs for stable anchors
await page.getByTestId('checkout-button').click();