# Data Test ID Implementation Guide
## Overview
To make our Playwright tests more reliable and maintainable, we should add `data-testid` attributes to key UI elements. This prevents tests from breaking when CSS classes or text content changes.
## Current Test Status
✅ **Working Tests** (using current selectors):
- `smoke.spec.ts` - Basic functionality validation
- `auth-realistic.spec.ts` - Authentication flows using form elements
⚠️ **Enhanced Tests** (require data-testid attributes):
- `auth.spec.ts` - Full authentication suite
- `navigation.spec.ts` - Navigation and routing
- `theme.spec.ts` - Theme switching
- `responsive.spec.ts` - Responsive design
- `components.spec.ts` - UI components
## Implementation Plan
### Phase 1: Critical Elements (Authentication)
Add these data-testid attributes to `/src/pages/LoginPage.tsx`:
```tsx
// Email input
// Password input
// Password toggle button