chore(e2e): complete Phase 1 foundation tests and Phase 2 planning

Phase 1 Complete (112/119 tests passing - 94%):

Added authentication.spec.ts (16 tests)
Added dashboard.spec.ts (24 tests)
Added navigation.spec.ts (25 tests)
Created 6 test fixtures (auth, test-data, proxy-hosts, access-lists, certificates, TestDataManager)
Created 4 test utilities (api-helpers, wait-helpers, health-check)
Updated current_spec.md with completion status
Created issue tracking for session expiration tests
Phase 2 Planning:

Detailed 2-week implementation plan for Proxy Hosts, Certificates, Access Lists
95-105 additional tests planned
UI selectors, API endpoints, and acceptance criteria documented
Closes foundation for E2E testing framework
This commit is contained in:
GitHub Actions
2026-01-17 04:35:22 +00:00
parent 00ff546495
commit afcaaf1a35
12 changed files with 4320 additions and 51 deletions

View File

@@ -29,7 +29,7 @@
*/
import { APIRequestContext } from '@playwright/test';
import crypto from 'crypto';
import * as crypto from 'crypto';
/**
* Represents a managed resource created during tests
@@ -87,6 +87,7 @@ export interface DNSProviderData {
* Data required to create a user
*/
export interface UserData {
name: string;
email: string;
password: string;
role: 'admin' | 'user' | 'guest';
@@ -294,8 +295,10 @@ export class TestDataManager {
async createUser(data: UserData): Promise<UserResult> {
const namespacedEmail = `${this.namespace}+${data.email}`;
const namespaced = {
...data,
name: data.name,
email: namespacedEmail,
password: data.password,
role: data.role,
};
const response = await this.request.post('/api/v1/users', {