From 06a817c416e1234ade0f86d6018b8087e5efb6f2 Mon Sep 17 00:00:00 2001 From: Zhi Date: Fri, 13 Mar 2026 19:38:39 +0000 Subject: [PATCH] Debug WIZARD_URL and use separate API URL --- tests/wizard.spec.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/wizard.spec.ts b/tests/wizard.spec.ts index f02270d..f74fa8d 100644 --- a/tests/wizard.spec.ts +++ b/tests/wizard.spec.ts @@ -3,12 +3,16 @@ import axios from 'axios'; const FRONTEND_URL = process.env.FRONTEND_URL || 'http://frontend:3000'; const BACKEND_URL = process.env.BACKEND_URL || 'http://backend:8000'; -const WIZARD_URL = process.env.WIZARD_URL || 'http://wizard:8080/wizard'; // Use corrected WIZARD_URL +const WIZARD_URL = process.env.WIZARD_URL || 'http://wizard:8080/wizard'; +const WIZARD_API_URL = process.env.WIZARD_API_URL || 'http://wizard:8080'; test.describe('Setup Wizard', () => { test('complete wizard flow', async ({ page }) => { + console.log('WIZARD_URL:', WIZARD_URL); + console.log('WIZARD_API_URL:', WIZARD_API_URL); + // Configure wizard via API first - await axios.put(`${WIZARD_URL.replace('/wizard', '')}/api/v1/config/harborforge.json`, { + await axios.put(`${WIZARD_API_URL}/api/v1/config/harborforge.json`, { initialized: true, admin: { username: "admin", @@ -30,7 +34,7 @@ test.describe('Setup Wizard', () => { } }); - // Now test wizard in browser by navigating directly to wizard UI path + // Navigate to wizard UI await page.goto(WIZARD_URL); await page.waitForLoadState('networkidle');