diff --git a/playwright.config.ts b/playwright.config.ts index 0d788ff09..5ad660d2c 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,10 +1,20 @@ -const config = { - webServer: { - command: 'pnpm build:svelte && pnpm preview', - port: 4173, - timeout: 600000 - }, - testDir: 'tests' -}; +import { defineConfig, devices } from '@playwright/test'; + +const config = defineConfig({ + fullyParallel: true, + retries: process.env.CI ? 2 : 0, + webServer: { + command: 'pnpm build:svelte && pnpm preview', + port: 4173, + timeout: 600_000 + }, + projects: [ + { + name: 'chromium', + use: { ...devices['Desktop Chrome'] }, + }, + ], + testDir: 'tests' +}); export default config;