pcbjam/tests/e2e
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Viktor Vaczi 01dce40dc9 test(wasm): coroutine crash reproduction harness + per-engine runner
Investigation scaffolding for the Chrome-only KiCad coroutine renderer crash.
Adds isolated reproduction probes exercising the coroutine/Asyncify/fiber layer
under KiCad-like conditions, runnable in BOTH Firefox and system Chrome.

- tests/playwright-coroutine.config.ts + test:coroutine:firefox|chrome npm
  scripts: run the coroutine specs in Firefox AND system Chrome (the old e2e
  config only used bundled Chromium, which never reproduced the crash).
- tests/apps/standalone/coroutine-pthread/: no-wx + pthreads reproduction probes
  (fiber-in-main, nested invoke_/dynCall boundaries, RunMainStack, embind,
  main-loop/rAF activation) + worker_dom_stub.js for wx+pthreads builds.
- tests/apps/Makefile.wasm: coroutine-pthread{,-main,-nested,-nested-ex,-wx,
  -embind,-mainloop} targets.
- scripts/common/shims/diagnostics.js: add EM_ASYNC_JS handleSleep enter/wake
  tracking (DIAG_SLEEP) to detect nested-async at the crash.

Findings (details in research notes): every isolated factor so far — direct /
nested / RunMainStack fiber, wx event loop + all 13 scenarios incl EM_ASYNC_JS,
pthreads, and main-loop/rAF activation — runs CLEAN in system Chrome. The
coroutine/Asyncify layer is exonerated; GL/WebGL is the remaining untested factor
(next). The reliable FF-pass/Chrome-fail repro is still the KiCad pcbnew e2e.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 18:44:12 +02:00
..
baseline-screenshots Fix wxGrid test crash and add debug build support 2025-11-29 22:15:56 +01:00
utils Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
aui.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
auinotebook.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
bitmapbuttons.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
bitmask.spec.ts Add WASM feature tests: font enum, text decor, bitmap mask, regions 2025-12-04 11:06:33 +01:00
calendar.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
clipboard.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
collapsible.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
coroutine-nested.spec.ts wip: nested-asyncify fix, wxAuiToolBar registration, tests, research docs 2026-04-21 13:58:16 +02:00
coroutine-pthread.spec.ts test(wasm): coroutine crash reproduction harness + per-engine runner 2026-05-25 18:44:12 +02:00
coroutine.spec.ts wip: nested-asyncify fix, wxAuiToolBar registration, tests, research docs 2026-04-21 13:58:16 +02:00
dataview.spec.ts Extend element registry and migrate all tests to semantic selectors 2025-12-30 14:17:51 +01:00
dataviewvirtual.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
dialog.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
dialogs.spec.ts Extend element registry and migrate all tests to semantic selectors 2025-12-30 14:17:51 +01:00
dnd.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
earlysize.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
filedialog.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
fontenum.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
gal-webgl.spec.ts fix(test): Fix WebGL screenshot capture and comparison 2026-01-08 11:32:39 +01:00
grid.spec.ts Extend element registry and migrate all tests to semantic selectors 2025-12-30 14:17:51 +01:00
gridedit.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
gridrenderers.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
htmlwin.spec.ts Extend element registry and migrate all tests to semantic selectors 2025-12-30 14:17:51 +01:00
infobar.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
layout.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
listctrl.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
logerror.spec.ts Add element registry for semantic E2E test automation 2025-12-29 12:11:33 +01:00
maximize.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
menu.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
opengl.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
ownerdrawn.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
pickers.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
popup.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
print.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
printpreview.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
propgrid.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
regions.spec.ts Add WASM feature tests: font enum, text decor, bitmap mask, regions 2025-12-04 11:06:33 +01:00
retinascale.spec.ts wasm: validate kicad hi-dpi scaling 2026-03-22 12:48:05 +01:00
specialized.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
stc.spec.ts Extend element registry and migrate all tests to semantic selectors 2025-12-30 14:17:51 +01:00
textdecor.spec.ts Add WASM feature tests: font enum, text decor, bitmap mask, regions 2025-12-04 11:06:33 +01:00
threadpool.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
timer.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
toolbar.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
tree.spec.ts Extend element registry and migrate all tests to semantic selectors 2025-12-30 14:17:51 +01:00
validators.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
wasmedge.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
wizard.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
wxwidgets.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00
xml.spec.ts Clean up test infrastructure and fix test assertions 2026-01-01 20:18:19 +01:00