Added Playwright E2E testing setup (#1893)

This commit is contained in:
Zane
2025-03-28 08:20:14 -07:00
committed by GitHub
parent 5fcb3eb984
commit 594fa7ef6b
5 changed files with 350 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
testDir: './tests/e2e',
timeout: 60000,
expect: {
timeout: 30000
},
fullyParallel: false,
workers: 1,
reporter: [
['html'],
['list']
],
use: {
actionTimeout: 30000,
navigationTimeout: 30000,
trace: 'on-first-retry',
video: 'retain-on-failure',
screenshot: 'only-on-failure'
},
outputDir: 'test-results',
preserveOutput: 'failures-only'
};
export default config;