From aed3eb490ebd8fa0861f64eb58cce1dde8a016e5 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Wed, 29 Jul 2026 12:42:02 +0200 Subject: [PATCH] Rename the shadowed prompt row binding in the frame recorder --- packages/app/e2e/agent-consecutive-turns.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app/e2e/agent-consecutive-turns.spec.ts b/packages/app/e2e/agent-consecutive-turns.spec.ts index 615064020..3e6bbca13 100644 --- a/packages/app/e2e/agent-consecutive-turns.spec.ts +++ b/packages/app/e2e/agent-consecutive-turns.spec.ts @@ -62,7 +62,7 @@ async function recordTurnFrames(page: Page, prompt: string): Promise { const scroll = findScroll(); // Re-find the row every frame: reconciliation replaces the node, and a stale // reference would keep reporting the position of something already detached. - const prompt = Array.from(document.querySelectorAll('[data-testid="user-message"]')).find( + const promptRow = Array.from(document.querySelectorAll('[data-testid="user-message"]')).find( (candidate) => isVisible(candidate) && candidate.textContent?.includes(promptText), ); state.frames.push({ @@ -70,8 +70,8 @@ async function recordTurnFrames(page: Page, prompt: string): Promise { workingVisible: Array.from( document.querySelectorAll('[data-testid="turn-working-indicator"]'), ).some(isVisible), - promptVisible: Boolean(prompt), - promptTop: prompt ? prompt.getBoundingClientRect().top : null, + promptVisible: Boolean(promptRow), + promptTop: promptRow ? promptRow.getBoundingClientRect().top : null, assistantVisible: Array.from( document.querySelectorAll('[data-testid="assistant-message"]'), ).some(isVisible),