test(e2e): capture the drag-over-TUI proof frame via ORCA_E2E_PROOF_SCREENSHOT

The spec relaunches Orca, so the video fixture never flushes a WebM. Opt-in screenshot at the decisive frame instead.

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-08-04 01:37:20 -07:00
co-authored by Orca
parent 2db88d41db
commit aa9352c4fa
@@ -239,6 +239,13 @@ test.describe('terminal reattach mouse mode', () => {
// ── The reported symptom: drag now paints a selection over the TUI ──
await dragAcrossTuiRows(secondLaunch.page, afterReattach.screen)
const afterDrag = await readTerminalSurface(secondLaunch.page)
// Why a screenshot and not the video fixture: this spec quits and relaunches Orca,
// so the recorder's WebM never flushes. This frame IS the proof — on main the drag
// paints an xterm row selection across the live TUI; here it must stay clean.
const proofShot = process.env.ORCA_E2E_PROOF_SCREENSHOT
if (proofShot) {
await secondLaunch.page.screenshot({ path: proofShot })
}
expect(afterDrag, 'terminal surface unavailable after the drag').not.toBeNull()
expect(
afterDrag!.selectionText,