27 lines
705 B
TypeScript
27 lines
705 B
TypeScript
|
|
import { defineConfig } from '@playwright/test';
|
||
|
|
import { evidence, fixture } from './fixture.ts';
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
testDir: '.',
|
||
|
|
testMatch: 'account.spec.ts',
|
||
|
|
timeout: 90_000,
|
||
|
|
expect: { timeout: 10_000 },
|
||
|
|
retries: 0,
|
||
|
|
workers: 1,
|
||
|
|
maxFailures: 1,
|
||
|
|
reporter: 'list',
|
||
|
|
outputDir: evidence('results'),
|
||
|
|
projects: [
|
||
|
|
{ name: 'gateway', use: { baseURL: fixture.origins[0] } },
|
||
|
|
{ name: 'direct', use: { baseURL: fixture.origins[1] } },
|
||
|
|
],
|
||
|
|
use: {
|
||
|
|
browserName: 'firefox',
|
||
|
|
baseURL: fixture.origins[0],
|
||
|
|
ignoreHTTPSErrors: true,
|
||
|
|
actionTimeout: 10_000,
|
||
|
|
navigationTimeout: 10_000,
|
||
|
|
trace: 'retain-on-failure',
|
||
|
|
screenshot: 'only-on-failure',
|
||
|
|
},
|
||
|
|
});
|