2025-12-04 11:06:33 +01:00
|
|
|
// 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);
|
2026-01-01 20:18:19 +01:00
|
|
|
expect(loaded, 'App should load').toBe(true);
|
2025-12-04 11:06:33 +01:00
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|