40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/e2e',
|
|
globalSetup: './tests/e2e/global-setup.mjs',
|
|
fullyParallel: true,
|
|
forbidOnly: Boolean(process.env.CI),
|
|
retries: process.env.CI ? 2 : 0,
|
|
reporter: 'html',
|
|
use: {
|
|
baseURL: process.env.CHRNX_E2E_BASE_URL || 'http://localhost:8888',
|
|
trace: 'on-first-retry',
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
testIgnore: 'visual-scenarios.spec.mjs',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
{
|
|
name: 'firefox',
|
|
testIgnore: 'visual-scenarios.spec.mjs',
|
|
use: { ...devices['Desktop Firefox'] },
|
|
},
|
|
{
|
|
name: 'webkit',
|
|
testIgnore: 'visual-scenarios.spec.mjs',
|
|
use: { ...devices['Desktop Safari'] },
|
|
},
|
|
{
|
|
name: 'scenarios',
|
|
testMatch: 'visual-scenarios.spec.mjs',
|
|
dependencies: [ 'chromium', 'firefox', 'webkit' ],
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
],
|
|
});
|