Skip to content

Commit d3200e4

Browse files
tg44claude
andcommitted
fix(wasm): re-land eeschema-switch nav from 3dcfea5e45 + de-flake sim run-tool poll
kicad bump: re-apply only the nav hunk of 3dcfea5e45 (the 7/20 backout 92f18ef4ed was aimed at the WebGL GAL recovery/flush but took the nav with it, breaking web/tool-switch.spec.ts on both engines since). eeschema-sim spec: the Run tool's ENABLE(!simRunning) is a wxUpdateUIEvent condition the WASM port only re-evaluates on input events — after a run finishes the toolbar can hold its stale "running" state past the 60s poll (CI 29846684031: run finished, Run still disabled). Nudge the mouse inside the poll so the condition re-evaluates. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APzCH3oxjLrZk6Nxepvczz
1 parent 060ccbb commit d3200e4

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎kicad‎

Submodule kicad updated from 91c9732 to d06f653

‎tests/kicad/eeschema-sim.spec.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,16 @@ async function runSimulation(page: import('@playwright/test').Page): Promise<voi
7575

7676
// The simulator window div appears while the frame ctor is still
7777
// suspended in the init RPC; the toolbar registers its tools only after
78-
// init completes and the frame first paints.
78+
// init completes and the frame first paints. The Run tool's
79+
// ENABLE(!simRunning) condition is a wxUpdateUIEvent check, and the WASM
80+
// port only reliably re-evaluates those when input events pump the loop —
81+
// after a run finishes, the last input was the click that started it, so
82+
// nudge the mouse each poll or the toolbar can hold its stale
83+
// "running" state forever.
7984
await expect
8085
.poll(async () => {
86+
await page.mouse.move(4, 4);
87+
await page.mouse.move(8, 8);
8188
const el = await findByTooltip(page, 'Run Simulation', { elementType: 'tool' });
8289
return !!el && el.enabled;
8390
}, { timeout: 60000 })

0 commit comments

Comments
 (0)