- Vite config with COOP/COEP headers for SharedArrayBuffer - SolidJS app renders at root URL without JS errors - WASM ML engine loads and inference returns 126 bounded [0,1] outputs - Debug probe (window.__nisps) exposed only with ?debug=1 - TypeScript strict mode with complete type coverage - Playwright e2e tests (8 tests) for VAL-PROJ-001/002/003 - WasmIML TypeScript port from playground/js/nisps/nisps-wasm.js - Dataset TypeScript port with FIFO ring buffer and sample weighting Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
16 lines
523 B
TypeScript
16 lines
523 B
TypeScript
/**
|
|
* Shared helpers for SolidJS e2e tests.
|
|
*/
|
|
import { Page } from '@playwright/test';
|
|
|
|
/**
|
|
* Navigate to SolidJS app with ?debug=1 and wait for WASM engine init.
|
|
*/
|
|
export async function loadSolidApp(page: Page, extraParams = '') {
|
|
await page.addInitScript(() => {
|
|
localStorage.removeItem('nisps-a-immersive');
|
|
localStorage.setItem('nisps-help-seen', '1');
|
|
});
|
|
await page.goto(`/?debug=1${extraParams}`);
|
|
await page.waitForFunction(() => (window as any).__nisps !== undefined, { timeout: 20_000 });
|
|
}
|