From 07ae573169354558846b017cb18d57c6c0a96437 Mon Sep 17 00:00:00 2001 From: Nathaniel Blackburn Date: Wed, 18 Dec 2024 20:43:14 +0000 Subject: [PATCH] feat: add playright config --- playwright.config.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 playwright.config.ts diff --git a/playwright.config.ts b/playwright.config.ts new file mode 100644 index 0000000..910b0ba --- /dev/null +++ b/playwright.config.ts @@ -0,0 +1,20 @@ +import { defineConfig, devices } from '@playwright/test'; + +export default defineConfig({ + testDir: './tests', + fullyParallel: true, + forbidOnly: !!process.env.CI, + retries: process.env.CI ? 2 : 0, + workers: process.env.CI ? 1 : undefined, + reporter: 'html', + use: { + trace: 'on-first-retry' + }, + + projects: [ + { + name: 'chromium', + use: { ...devices['Desktop Chrome'] } + } + ] +});