test: add E2E test for Extractor workflow using Playwright

- 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
This commit is contained in:
Misaka
2026-03-01 15:53:03 +08:00
parent cb2a5a84b2
commit 484ca31d79
4 changed files with 149 additions and 2 deletions

View File

@@ -21,7 +21,10 @@
"build:linux": "electron-vite build && electron-builder --linux",
"test": "vitest",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage"
"test:coverage": "vitest run --coverage",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:report": "playwright show-report"
},
"dependencies": {
"@electron-toolkit/preload": "^3.0.2",