mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 08:03:28 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user