Debug WIZARD_URL and use separate API URL
This commit is contained in:
@@ -3,12 +3,16 @@ 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'; // 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.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_URL.replace('/wizard', '')}/api/v1/config/harborforge.json`, {
|
await axios.put(`${WIZARD_API_URL}/api/v1/config/harborforge.json`, {
|
||||||
initialized: true,
|
initialized: true,
|
||||||
admin: {
|
admin: {
|
||||||
username: "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.goto(WIZARD_URL);
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user