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:
Viktor Vaczi 2026-01-01 20:18:19 +01:00
commit 251056e506
42 changed files with 241 additions and 1138 deletions

View file

@ -19,10 +19,7 @@ test.describe('wxCollapsiblePane Tests', () => {
test('Collapsible panes are created', async ({ page, testLogger }) => {
await page.goto('/standalone/collapsible/collapsible_test.html');
const loaded = await tryLoadApp(page);
if (!loaded) {
test.skip();
return;
}
expect(loaded, 'App should load').toBe(true);
await page.waitForTimeout(500);
await page.screenshot({ path: 'test-results/collapsible-02-panes.png', fullPage: true });
@ -36,10 +33,7 @@ test.describe('wxCollapsiblePane Tests', () => {
test('First pane is expanded by default', async ({ page, testLogger }) => {
await page.goto('/standalone/collapsible/collapsible_test.html');
const loaded = await tryLoadApp(page);
if (!loaded) {
test.skip();
return;
}
expect(loaded, 'App should load').toBe(true);
await page.waitForTimeout(500);
await page.screenshot({ path: 'test-results/collapsible-03-expanded.png', fullPage: true });
@ -51,10 +45,7 @@ test.describe('wxCollapsiblePane Tests', () => {
test('Expand All button works', async ({ page, testLogger }) => {
await page.goto('/standalone/collapsible/collapsible_test.html');
const loaded = await tryLoadApp(page);
if (!loaded) {
test.skip();
return;
}
expect(loaded, 'App should load').toBe(true);
// Click Expand All button using element registry
const clicked = await clickByLabel(page, 'Expand All');
@ -72,10 +63,7 @@ test.describe('wxCollapsiblePane Tests', () => {
test('Collapse All button works', async ({ page, testLogger }) => {
await page.goto('/standalone/collapsible/collapsible_test.html');
const loaded = await tryLoadApp(page);
if (!loaded) {
test.skip();
return;
}
expect(loaded, 'App should load').toBe(true);
// Click Collapse All button using element registry
const clicked = await clickByLabel(page, 'Collapse All');