Files
euchre_camp/e2e/epic1-auth-password-reset.test.ts
david e455d5dba5
Build CI Images / build-ci-base (push) Successful in 1m53s
Release / release (push) Failing after 12m42s
fix: mount /apps and docker socket in PR workflow build-and-deploy-ci job (#41)
Reviewed-on: #41
Co-authored-by: David Gwilliam <dhgwilliam@gmail.com>
Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
2026-05-20 19:51:35 +00:00

38 lines
1.3 KiB
TypeScript

/**
* 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('/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('/auth/password-reset');
// Check if page loads (may show "not implemented" message)
await expect(page.locator('body')).toBeVisible();
});
});