Improve KiCad test workflow and separate from wxWidgets tests

- npm run test:kicad now auto-runs setup script first
- Create separate playwright-kicad.config.ts for KiCad tests
- Fix kicad spec to use web server instead of file:// paths
- Remove duplicate pcbnew.html/wasm from tests/kicad/
  (proper files are in tests/apps/kicad/)

Test separation:
- npm test: runs only wxWidgets tests (tests/e2e/)
- npm run test:kicad: runs only KiCad tests (tests/kicad/)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Viktor Vaczi 2025-12-27 16:01:35 +01:00
commit 2ad6786198
4 changed files with 85 additions and 417 deletions

View file

@ -9,8 +9,8 @@
"build-wasm": "cd apps && make -f Makefile.wasm",
"serve": "npx serve apps -p 8080 -c ../serve.json",
"setup:kicad": "./scripts/setup-kicad-wasm.sh",
"test:kicad": "playwright test kicad/",
"test:kicad:headed": "playwright test kicad/ --headed"
"test:kicad": "npm run setup:kicad && playwright test --config=playwright-kicad.config.ts",
"test:kicad:headed": "npm run setup:kicad && playwright test --config=playwright-kicad.config.ts --headed"
},
"devDependencies": {
"@playwright/test": "^1.40.0",