Clean up test infrastructure and fix test assertions
- Replace test.skip() with proper expect() assertions when app fails to load - Remove button-finder utility (no longer needed with element registry) - Remove kicad tests (tested separately) - Add findByName/clickByName helpers for bitmap buttons - Fix element lookups: use clickByName for bitmap buttons, clickTreeItem for treebook pages, selectComboItem for wxChoice items - Add SetName() to shape buttons in bitmapbuttons_test.cpp - Remove verbose logging from print and threadpool tests - Update README to reflect current test infrastructure 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2ecb79996d
commit
251056e506
42 changed files with 241 additions and 1138 deletions
|
|
@ -235,30 +235,6 @@ These tests use the element registry:
|
|||
- `filedialog.spec.ts` - Open, Save, Open Multiple buttons
|
||||
- `logerror.spec.ts` - Trigger Error, Flush Log buttons
|
||||
|
||||
## Button Finder Utility (Legacy)
|
||||
|
||||
For elements not trackable by the registry, the button-finder utility scans a test app to find clickable positions by pixel coordinates.
|
||||
|
||||
**Note:** This utility is excluded from regular test runs (`npm test`). Use the dedicated config to run it.
|
||||
|
||||
### Usage
|
||||
|
||||
```bash
|
||||
cd tests
|
||||
|
||||
# Use the dedicated button-finder config (recommended)
|
||||
APP_URL=/standalone/clipboard/clipboard_test.html npx playwright test --config=playwright-button-finder.config.ts
|
||||
|
||||
# Scan with custom region (faster - focus on likely button area)
|
||||
APP_URL=/standalone/dialog/dialog_test.html START_Y=150 END_Y=300 STEP=8 npx playwright test --config=playwright-button-finder.config.ts
|
||||
|
||||
# Scan dataview test app for button positions
|
||||
APP_URL=/standalone/dataview/dataview_test.html STEP=8 START_Y=80 END_Y=180 npx playwright test --config=playwright-button-finder.config.ts
|
||||
|
||||
# Scan htmlwin test app
|
||||
APP_URL=/standalone/htmlwin/htmlwin_test.html STEP=8 START_Y=80 END_Y=160 npx playwright test --config=playwright-button-finder.config.ts
|
||||
```
|
||||
|
||||
### Available Test Apps
|
||||
|
||||
| App URL | Description |
|
||||
|
|
|
|||
Loading…
Reference in a new issue