- Add dark mode color adjustment helper for category colors - Support multiple motivational quote source URLs - Fix text wrapping for tasks/events to prevent horizontal overflow - Improve someday list item layout for long text - Add CLAUDE.md with semantic versioning and git workflow rules - Update test/doc URLs and planning docs v1.1.0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
// Test authentication flow against your running application
|
|
test.describe('Authentication Flow Tests', () => {
|
|
test('should access login page', async ({ page }) => {
|
|
await page.goto('http://localhost:3001/auth/login');
|
|
|
|
// Check that we're on the login page
|
|
await expect(page).toHaveTitle(/Login/);
|
|
|
|
// Check for login form elements
|
|
await expect(page.getByText('Login')).toBeVisible();
|
|
await expect(page.getByPlaceholder('Email')).toBeVisible();
|
|
await expect(page.getByPlaceholder('Password')).toBeVisible();
|
|
await expect(page.getByRole('button', { name: 'Sign in' })).toBeVisible();
|
|
});
|
|
|
|
test('should access signup page', async ({ page }) => {
|
|
await page.goto('http://localhost:3001/auth/signup');
|
|
|
|
// Check that we're on the signup page
|
|
await expect(page).toHaveTitle(/Sign Up/);
|
|
|
|
// Check for signup form elements
|
|
await expect(page.getByText('Sign Up')).toBeVisible();
|
|
await expect(page.getByPlaceholder('Email')).toBeVisible();
|
|
await expect(page.getByPlaceholder('Password')).toBeVisible();
|
|
await expect(page.getByRole('button', { name: 'Sign up' })).toBeVisible();
|
|
});
|
|
}); |