simplify test to just test wizard UI flow

This commit is contained in:
Zhi
2026-03-13 19:31:07 +00:00
parent 828987b8f1
commit f05c0e3aca

View File

@@ -7,33 +7,8 @@ const WIZARD_URL = process.env.WIZARD_URL || 'http://wizard:8080';
test.describe('Setup Wizard', () => {
test('complete wizard flow', async ({ page }) => {
// Configure wizard via API first
await axios.put(`${WIZARD_URL}/api/v1/config/harborforge.json`, {
initialized: true,
admin: {
username: "admin",
password: "admin123",
email: "admin@test.com",
full_name: "Admin"
},
database: {
host: "mysql",
port: 3306,
user: "harborforge",
password: "harborforge_pass",
database: "harborforge"
},
backend_url: BACKEND_URL,
default_project: {
name: "TestProject",
description: "Test project"
}
});
// Now test wizard in browser
// Visit frontend which redirects to wizard
await page.goto(FRONTEND_URL);
// Wait for page to load
await page.waitForLoadState('networkidle');
// Step 0: Welcome - Click "Connect to Wizard"