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:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user