pcbjam/tests/e2e/fontenum.spec.ts
Viktor Vaczi 251056e506 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>
2026-01-01 20:18:19 +01:00

20 lines
751 B
TypeScript

// wxFontEnumerator Tests - Local Font Access API integration
import { test, expect, tryLoadApp } from './utils/fixtures';
test.describe('wxFontEnumerator Tests', () => {
test('Font enumeration renders correctly', async ({ page, testLogger }) => {
await page.goto('/standalone/fontenum/fontenum_test.html');
const loaded = await tryLoadApp(page);
expect(loaded, 'App should load').toBe(true);
// Wait for auto font enumeration to complete (uses Asyncify)
await page.waitForTimeout(3000);
await page.screenshot({ path: 'test-results/fontenum.png', fullPage: true });
expect(loaded, 'Font enum app should load').toBe(true);
expect(testLogger.errors.filter(e => !e.includes('favicon'))).toHaveLength(0);
});
});