mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 16:59:43 +02:00
fix: Ralph wizard uses file-based prompt to avoid screen escaping issues
- Add /api/sessions/:id/ralph-prompt/write endpoint to write prompt to @ralph_prompt.md - Wizard now writes full prompt to file, then sends simple read command to Claude - Fix session readiness check to wait for prompt character instead of notWorking flag - Add E2E test infrastructure for ralph-loop workflow (port 3190) - Add ralph-wizard-prod.mjs script for production testing Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* 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()}`;
|
||||
}
|
||||
Reference in New Issue
Block a user