add e2e
This commit is contained in:
parent
be60cf9a3d
commit
e4abdb183f
9 changed files with 541 additions and 0 deletions
25
e2e/playwright.config.ts
Normal file
25
e2e/playwright.config.ts
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './tests',
|
||||
fullyParallel: false, // Run tests serially to maintain state between tests
|
||||
forbidOnly: !!process.env.CI,
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
workers: 1, // Single worker to maintain state
|
||||
reporter: 'html',
|
||||
|
||||
use: {
|
||||
trace: 'on-first-retry',
|
||||
screenshot: 'only-on-failure',
|
||||
video: 'retain-on-failure',
|
||||
},
|
||||
|
||||
projects: [
|
||||
{
|
||||
name: 'chromium',
|
||||
use: { ...devices['Desktop Chrome'] },
|
||||
},
|
||||
],
|
||||
|
||||
outputDir: 'test-results/',
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue