import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ testDir: './tests', use: { baseURL: 'http://127.0.0.1:4173' }, webServer: { command: 'npm run serve', url: 'http://127.0.0.1:4173/login', reuseExistingServer: false }, projects: [ { name: 'setup', testMatch: /auth\.setup\.ts/ }, { name: 'chromium', use: { ...devices['Desktop Chrome'], storageState: 'playwright/.auth/user.json' }, dependencies: ['setup'] } ] });