orca/tests/e2e/helpers
brennanb2025 4c8603b523 test(e2e): key Monaco registry by viewStateKey to fix split-pane lifecycle
Two split panes viewing the same file are distinct <MonacoEditor> React
instances with distinct viewStateKey values. Keying the dev/E2E registry
by filePath made the second mount overwrite the first; because cleanup is
guarded by editorRef identity, the first pane's later unmount couldn't
find a matching entry and left the registry empty while a live pane still
existed. Keying by viewStateKey gives each pane its own slot so set and
delete share the same unique key.

Also:
- Declare window.__monacoEditors on Window in env.d.ts and
  helpers/runtime-types.ts so reads/writes are fully typed in both
  renderer and test harness.
- getMonacoContent now scans the registry by model URI fsPath so specs
  that don't care about split panes can look up "the editor showing this
  file" without knowing its viewStateKey.
- Restore markdownViewMode's `?? 'rich'` default at the test read site to
  match EditorPanel.tsx's effective mode — the store map is undefined for
  files the user never explicitly toggled.
2026-04-19 17:45:28 -07:00
..
external-file-change.ts test(e2e): key Monaco registry by viewStateKey to fix split-pane lifecycle 2026-04-19 17:45:28 -07:00
file-explorer.ts feat: add idempotent E2E test suite with headless Electron support (#671) 2026-04-19 12:09:32 -07:00
orca-app.ts feat: add idempotent E2E test suite with headless Electron support (#671) 2026-04-19 12:09:32 -07:00
runtime-types.ts test(e2e): key Monaco registry by viewStateKey to fix split-pane lifecycle 2026-04-19 17:45:28 -07:00
shortcuts.ts feat: add idempotent E2E test suite with headless Electron support (#671) 2026-04-19 12:09:32 -07:00
store.ts feat: add idempotent E2E test suite with headless Electron support (#671) 2026-04-19 12:09:32 -07:00
terminal.ts feat: add idempotent E2E test suite with headless Electron support (#671) 2026-04-19 12:09:32 -07:00