mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-17 03:27:00 +08:00
23 lines
718 B
TypeScript
23 lines
718 B
TypeScript
import { defineConfig } from '@playwright/test'
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/e2e',
|
|
testMatch: /.*\.spec\.ts/,
|
|
timeout: 45_000,
|
|
expect: { timeout: 8_000 },
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
forbidOnly: Boolean(process.env.CI),
|
|
retries: process.env.CI ? 1 : 0,
|
|
reporter: process.env.CI
|
|
? [['line'], ['html', { outputFolder: 'playwright-report', open: 'never' }]]
|
|
: [['list'], ['html', { outputFolder: 'playwright-report', open: 'never' }]],
|
|
outputDir: 'test-results',
|
|
snapshotPathTemplate: 'tests/e2e/__screenshots__/{platform}/{testFilePath}/{arg}{ext}',
|
|
use: {
|
|
trace: 'retain-on-failure',
|
|
screenshot: 'only-on-failure',
|
|
video: 'retain-on-failure'
|
|
}
|
|
})
|