- Create tests/e2e/extractor-workflow.test.ts with full workflow tests - Add playwright.config.ts for E2E test configuration - Add npm scripts: test:e2e, test:e2e:ui, test:e2e:report - Update vitest.config.ts to exclude E2E tests
24 lines
453 B
TypeScript
24 lines
453 B
TypeScript
import { defineConfig } from '@playwright/test'
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/e2e',
|
|
timeout: 120000,
|
|
fullyParallel: false,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: 1,
|
|
reporter: 'html',
|
|
use: {
|
|
trace: 'on-first-retry',
|
|
screenshot: 'only-on-failure'
|
|
},
|
|
|
|
// Test configuration for Electron
|
|
projects: [
|
|
{
|
|
name: 'electron',
|
|
testMatch: '**/*.test.ts'
|
|
}
|
|
]
|
|
})
|