/ playwright.config.ts
playwright.config.ts
1 import { defineConfig, devices } from '@playwright/test'; 2 3 /** 4 * See https://playwright.dev/docs/test-configuration. 5 */ 6 export default defineConfig({ 7 testDir: './tests', 8 fullyParallel: true, 9 forbidOnly: !!process.env.CI, 10 workers: process.env.CI ? 1 : 4, 11 retries: process.env.CI ? 1 : 0, 12 reporter: 'html', 13 globalTeardown: './tests/global-teardown.ts', 14 15 use: { 16 trace: 'on', 17 }, 18 19 projects: [ 20 { 21 name: 'chromium', 22 use: { 23 ...devices['Desktop Chrome'], 24 contextOptions: { 25 reducedMotion: 'reduce', 26 }, 27 }, 28 }, 29 { 30 name: 'firefox', 31 use: { 32 ...devices['Desktop Firefox'], 33 contextOptions: { 34 reducedMotion: 'reduce', 35 }, 36 }, 37 }, 38 ], 39 });