remove wizard url, use frontend url only
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
const WIZARD_URL = process.env.WIZARD_URL || 'http://127.0.0.1:18080';
|
||||
const FRONTEND_URL = process.env.FRONTEND_URL || 'http://127.0.0.1:3000';
|
||||
const BACKEND_URL = process.env.BACKEND_URL || 'http://127.0.0.1:8000';
|
||||
|
||||
test.describe('Setup Wizard', () => {
|
||||
test('complete wizard flow', async ({ page }) => {
|
||||
// Go to frontend which should redirect to wizard
|
||||
await page.goto('/');
|
||||
await page.goto(FRONTEND_URL);
|
||||
|
||||
// Step 0: Welcome - Click "Connect to Wizard"
|
||||
await expect(page.locator('h1')).toContainText('HarborForge Setup Wizard');
|
||||
@@ -36,10 +36,4 @@ test.describe('Setup Wizard', () => {
|
||||
await expect(page.locator('h2')).toContainText('Setup complete!');
|
||||
await expect(page.locator('code')).toContainText('docker compose restart');
|
||||
});
|
||||
|
||||
test('wizard health check', async ({ request }) => {
|
||||
const response = await request.get(`${WIZARD_URL}/health`);
|
||||
// Wizard might return 200 or 404 if not initialized
|
||||
expect([200, 404]).toContain(response.status());
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user