jan/electron/playwright.config.ts
Van Pham 2f961d7cab
feat: Playwright capture screenshot of Electron desktop app (Jan) on failures (#1934)
* feat: Apply Screenshot on failures

* feat: set timeout by default

* chore: clean up import
2024-02-07 09:41:35 +07:00

17 lines
365 B
TypeScript

import { PlaywrightTestConfig } from '@playwright/test'
const config: PlaywrightTestConfig = {
testDir: './tests/e2e',
retries: 0,
globalTimeout: 300000,
use: {
screenshot: 'only-on-failure',
video: 'retain-on-failure',
trace: 'retain-on-failure',
},
reporter: [['html', { outputFolder: './playwright-report' }]],
}
export default config