- global-setup.ts: configures wizard before tests run - playwright.config.ts: uses globalSetup - wizard.spec.ts: simplified to just verify frontend loads
16 lines
627 B
TypeScript
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 });
|
|
});
|
|
});
|