You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/playwright/playwright.config.ts

30 lines
706 B

import { defineConfig, devices } from '@playwright/test';
// Base URL order: PLAYWRIGHT_BASE_URL > UAT default > localhost
const baseURL =
process.env.PLAYWRIGHT_BASE_URL ||
process.env.DOCUSEAL_UAT_URL ||
'http://localhost:3000';
export default defineConfig({
testDir: './tests',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: [['list'], ['html', { open: 'never' }]],
use: {
baseURL,
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
ignoreHTTPSErrors: true,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});