Navigate to frontend instead of wizard

This commit is contained in:
Zhi
2026-03-13 19:39:55 +00:00
parent 06a817c416
commit 6688fbb4de

View File

@@ -3,14 +3,10 @@ import axios from 'axios';
const FRONTEND_URL = process.env.FRONTEND_URL || 'http://frontend:3000'; const FRONTEND_URL = process.env.FRONTEND_URL || 'http://frontend:3000';
const BACKEND_URL = process.env.BACKEND_URL || 'http://backend:8000'; const BACKEND_URL = process.env.BACKEND_URL || 'http://backend:8000';
const WIZARD_URL = process.env.WIZARD_URL || 'http://wizard:8080/wizard';
const WIZARD_API_URL = process.env.WIZARD_API_URL || 'http://wizard:8080'; const WIZARD_API_URL = process.env.WIZARD_API_URL || 'http://wizard:8080';
test.describe('Setup Wizard', () => { test.describe('Setup Wizard', () => {
test('complete wizard flow', async ({ page }) => { 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 // Configure wizard via API first
await axios.put(`${WIZARD_API_URL}/api/v1/config/harborforge.json`, { await axios.put(`${WIZARD_API_URL}/api/v1/config/harborforge.json`, {
initialized: true, initialized: true,
@@ -34,8 +30,8 @@ test.describe('Setup Wizard', () => {
} }
}); });
// Navigate to wizard UI // Navigate to frontend which should redirect to wizard
await page.goto(WIZARD_URL); await page.goto(FRONTEND_URL);
await page.waitForLoadState('networkidle'); await page.waitForLoadState('networkidle');
// Step 0: Welcome - Click "Connect to Wizard" // Step 0: Welcome - Click "Connect to Wizard"