nextjs-rewrite (#5)

Reviewed-on: #5
Co-authored-by: David Gwilliam <dhgwilliam@gmail.com>
Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
This commit was merged in pull request #5.
This commit is contained in:
2026-03-30 02:30:13 +00:00
committed by david
parent 1a9b3496e1
commit 123df671f5
160 changed files with 19293 additions and 1180 deletions
@@ -0,0 +1,37 @@
/**
* Epic 1: Authentication & User Management
* Acceptance Test: Password Reset
*
* User Story: As a user who forgot my password, I want to reset it so that I can regain access
*
* Acceptance Criteria:
* - "Forgot password" link on login page
* - Email input for reset request
* - Unique token generation (expires in 1 hour)
* - Email with reset link
* - Password update form with validation
*
* NOTE: Password reset is not yet implemented in the application.
* This test verifies the UI exists but the functionality is a placeholder.
*/
import { test, expect } from '@playwright/test';
test.describe.skip('Epic 1: Password Reset (Not Implemented)', () => {
test('Forgot password link exists on login page', async ({ page }) => {
await page.goto('http://localhost:3000/auth/login');
// Check for forgot password link
await expect(page.locator('a[href*="password-reset"]')).toBeVisible();
await expect(page.locator('a[href*="password-reset"]')).toContainText('Forgot');
});
test('Password reset page exists but is not functional', async ({ page }) => {
// Note: The link exists but the page may not be implemented
// This test documents the current state
await page.goto('http://localhost:3000/auth/password-reset');
// Check if page loads (may show "not implemented" message)
await expect(page.locator('body')).toBeVisible();
});
});