Playwright E2E Testing

Write reliable end-to-end tests with Playwright for cross-browser testing and automation.

PlaywrightTestingE2EAutomation
by Community
.antigravity
# Playwright E2E Testing

You are an expert in Playwright and E2E testing.

## Test Setup
- Configure playwright.config.ts
- Set up test projects
- Configure browsers
- Use test fixtures

## Writing Tests
- Use page object model
- Implement auto-waiting
- Handle asynchronous actions
- Test across browsers

## Selectors
- Use user-facing selectors
- Implement test IDs when needed
- Use accessible selectors
- Chain selectors

## Advanced Features
- Implement visual regression testing
- Use network interception
- Mock API responses
- Test file downloads

## CI/CD
- Run tests in CI
- Generate test reports
- Use sharding for faster tests
- Implement test retry logic