| Filename | Latest commit message | Latest commit date |
|---|---|---|
Add infrastructure for visual regression testing of wxWidgets WASM rendering: - Add 121 baseline screenshots capturing all UI states tested by Playwright - Add scripts/compare-screenshots.sh to compare test results vs baseline - Update tests/WHATWORKS.md with documentation on screenshot comparison - Update wxwidgets submodule with dialog refactoring The baseline screenshots cover: - Main app tabs (Controls, Text Input, Drawing, Lists, OpenGL, Grid, Dialogs) - Standalone test apps (menu, toolbar, layout, aui, clipboard, filedialog, etc.) - Dialog/MessageBox rendering (info, yes/no, error, custom dialogs) - OpenGL rendering tests (immediate mode, vertex arrays, matrix ops) - UI interactions (dropdowns, tab switching, z-ordering) Use ./scripts/compare-screenshots.sh to check for visual regressions. Small byte differences (<2%) are typically timestamps, not visual changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
| .. | ||
| baseline-screenshots | ||
| e2e | ||
| wasm-app | ||
| GL_README.md | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| README.md | ||
| tsconfig.json | ||
| WHATWORKS.md | ||
KiCad WASM Tests
Playwright tests for verifying the wxWidgets WASM port.
Prerequisites
- Node.js 18+
- Emscripten SDK (for building)
Building the Test App
../scripts/build-wasm-test.sh
This builds wasm-app/minimal_test.{html,js,wasm}.
Running Tests
npm install
npm test
Viewing the App Directly
Start a local server in the wasm-app directory:
cd wasm-app
npx serve .
Then open http://localhost:3000/minimal_test.html in your browser.
Alternative using Python:
cd wasm-app
python3 -m http.server 8000
Then open http://localhost:8000/minimal_test.html