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
This commit is contained in:
Zhi
2026-03-14 08:34:55 +00:00
parent db9fadd13d
commit 0d0a8c9a48
3 changed files with 81 additions and 45 deletions

View File

@@ -1,4 +1,5 @@
import { defineConfig, devices } from '@playwright/test';
import path from 'path';
const baseURL = process.env.FRONTEND_URL || 'http://frontend:3000';
@@ -19,5 +20,8 @@ export default defineConfig({
use: { ...devices['Desktop Chrome'] },
},
],
// Don't start webServer - services are started via docker-compose
// Global setup runs before all tests - configure wizard once
globalSetup: path.join(__dirname, 'global-setup.ts'),
// Global teardown runs after all tests
globalTeardown: undefined,
});