From 3faac255fca594fc42872d89e6fe244fd66e45d1 Mon Sep 17 00:00:00 2001 From: Scott Tolinski Date: Wed, 6 Nov 2024 18:35:36 +0100 Subject: [PATCH] Update playwright.config.ts --- playwright.config.ts | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) 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;