|
- // playwright.config.ts
- import type { PlaywrightTestConfig } from '@playwright/test';
- import { devices } from '@playwright/test';
-
- const config: PlaywrightTestConfig = {
- forbidOnly: !!process.env.CI,
- retries: process.env.CI ? 2 : 0,
- use: {
- trace: 'on-first-retry',
- },
- projects: [
- {
- name: 'chromium',
- use: { ...devices['Desktop Chrome'] },
- },
- {
- name: 'firefox',
- use: { ...devices['Desktop Firefox'] },
- },
- ],
- };
- export default config;
|