Content Preview
# Test Generation Patterns
## Pattern: Authentication Flow
```typescript
test.describe('Authentication', () => {
test('should login with valid credentials', async ({ page }) => {
await page.goto('/login');
await page.getByLabel('Email').fill('[email protected]');
await page.getByLabel('Password').fill('password123');
await page.getByRole('button', { name: 'Sign in' }).click();
await expect(page).toHaveURL('/dashboard');
await expect(page.getByRole('heading', { name: 'DHow to Use
Recommended: Install to project (local)
mkdir -p .claude/skills
curl -o .claude/skills/patterns.md \
https://raw.githubusercontent.com/alirezarezvani/claude-skills/main/engineering-team/playwright-pro/skills/generate/patterns.mdSkill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.
Alternative: Clone full repo
git clone https://github.com/alirezarezvani/claude-skillsThen reference at engineering-team/playwright-pro/skills/generate/patterns.md
Related Skills
feature_engineering_patterns
World-class feature engineering patterns for senior data scientist.
engineering-teamfeatureengineeringpatterns
by alirezarezvani · alirezarezvani-claude-skills
aria-patterns
ARIA Patterns & Keyboard Interaction Reference
engineering-teamariapatterns
by alirezarezvani · alirezarezvani-claude-skills
framework-a11y-patterns
Framework-Specific Accessibility Patterns
engineering-teamframeworka11ypatterns
by alirezarezvani · alirezarezvani-claude-skills
architecture_patterns
AWS Architecture Patterns for Startups
engineering-teamarchitecturepatternsaws
by alirezarezvani · alirezarezvani-claude-skills