25 lines
606 B
TypeScript
25 lines
606 B
TypeScript
import { defineConfig, devices } from '@playwright/test'
|
|||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
testDir: './e2e',
|
||
|
|
fullyParallel: false,
|
||
|
|
forbidOnly: !!process.env.CI,
|
||
|
|
retries: process.env.CI ? 2 : 0,
|
||
|
|
workers: 1,
|
||
|
|
globalSetup: './e2e/global-setup.ts',
|
||
|
|
globalTeardown: './e2e/global-teardown.ts',
|
||
|
|
reporter: 'html',
|
||
|
|
use: {
|
||
|
|
baseURL: 'http://localhost:5173',
|
||
|
|
trace: 'on-first-retry',
|
||
|
|
},
|
||
|
|
projects: [
|
||
|
|
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
|
||
|
|
],
|
||
|
|
webServer: {
|
||
|
|
command: 'pnpm run dev:vite',
|
||
|
|
url: 'http://localhost:5173',
|
||
|
|
reuseExistingServer: true,
|
||
|
|
},
|
||
|
|
})
|