From aa9352c4fa3bfc1633e6383dd0f99c14233f2b72 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Tue, 4 Aug 2026 01:37:20 -0700 Subject: [PATCH] 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 --- tests/e2e/terminal-reattach-tui-mouse-mode.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/e2e/terminal-reattach-tui-mouse-mode.spec.ts b/tests/e2e/terminal-reattach-tui-mouse-mode.spec.ts index 4ba869b9b39..d857807b4ce 100644 --- a/tests/e2e/terminal-reattach-tui-mouse-mode.spec.ts +++ b/tests/e2e/terminal-reattach-tui-mouse-mode.spec.ts @@ -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,