Files
Codeman/test/e2e/e2e.config.ts
T

45 lines
1.1 KiB
TypeScript
Raw Normal View History

/**
* E2E Test Configuration
* Contains port allocations and shared test configuration
*/
// Port allocations for E2E tests
// See CLAUDE.md test port table for full list
export const E2E_PORTS = {
QUICK_START: 3183,
SESSION_INPUT: 3184,
SESSION_DELETE: 3185,
MULTI_SESSION: 3186,
AGENT_INTERACTIONS: 3187,
INPUT_INTERACTIONS: 3188,
RESPAWN_FLOW: 3189,
RALPH_LOOP: 3190,
} as const;
// Timeouts for various operations
export const E2E_TIMEOUTS = {
/** Default test timeout */
TEST: 90000,
/** Browser fixture creation */
BROWSER_SETUP: 30000,
/** Server startup */
SERVER_STARTUP: 15000,
/** Session creation */
SESSION_CREATE: 30000,
/** Screen creation verification */
SCREEN_VERIFY: 15000,
/** Terminal visibility */
TERMINAL_VISIBLE: 10000,
/** Agent spawn detection */
AGENT_SPAWN: 30000,
/** General element visibility */
ELEMENT_VISIBLE: 15000,
} as const;
// Test case naming prefix (for easy cleanup)
export const E2E_CASE_PREFIX = 'e2e-test-';
// Generate unique case name for tests
export function generateCaseName(testName: string): string {
return `${E2E_CASE_PREFIX}${testName}-${Date.now()}`;
}