Files
HarborForge.Frontend.Test/tests/wizard.spec.ts
Zhi 0d0a8c9a48 Convert wizard setup to globalSetup
- global-setup.ts: configures wizard before tests run
- playwright.config.ts: uses globalSetup
- wizard.spec.ts: simplified to just verify frontend loads
2026-03-14 08:34:55 +00:00

16 lines
627 B
TypeScript

import { test, expect } from '@playwright/test';
const FRONTEND_URL = process.env.FRONTEND_URL || 'http://frontend:3000';
test.describe('Setup Wizard', () => {
test('frontend loads and shows main page after wizard configuration', async ({ page }) => {
// Navigate to frontend - wizard should be configured by globalSetup
await page.goto(FRONTEND_URL);
await page.waitForLoadState('networkidle');
// Should now show main page (not wizard redirect)
// After wizard config, frontend should load normally
await expect(page.locator('h1')).toContainText('HarborForge', { timeout: 10000 });
});
});