Skip to content

Commit

Permalink
feat: add playright config
Browse files Browse the repository at this point in the history
  • Loading branch information
nblackburn committed Dec 18, 2024
1 parent 9cb9753 commit 07ae573
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -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'] }
}
]
});

0 comments on commit 07ae573

Please sign in to comment.