Repository navigation
test(dashboard): Wait for the transcript to stop moving a question card before a click - #4605
Merged
Merged
Conversation
…rd before a click
A click on a control that the transcript still moves fails Playwright's
stability check. Its retry calls scrollIntoView({ block: "end" }) on the
control, which scrolls the transcript up from the latest message, so the
shot shows another place.
In the question card spec, the answered question above the card reads
its closed item after the list, and its row grows by 58px. Wait for that
record before the clicks. In the unsent answers spec, the card shows
below the latest message, and the transcript follows it a frame later.
Wait until the card is in full view.
Refs #4176
Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BYK
approved these changes
Nov 27, 2026
BYK
enabled auto-merge
November 27, 2026 13:24
Contributor
|
6 screenshot changes — 6 changed · 0 added · 0 removed Review screenshots in Frameshift |
23 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #4176
Shots
conversation-unsent-answers__desktop(e2e/inbox/conversation-inbox-items.spec.ts) changes on PRs that do not touchpackages/junior-dashboard, also after test(dashboard): Make four flaky Frameshift shots deterministic #4424. Example: ref(core): End core at the commit and move delivery to the host #4565, report.conversation-question-card__desktopand-light__desktop(e2e/question-cards.spec.ts) change on such PRs since 2026-11-26. Examples: fix(core): Answer an input that arrives during the final reply in one reply #4577, report; chore(deps): Bump @sentry/api to 3.2.0 #4588, report.In both, one side shows the transcript scrolled up from the latest message, with the clicked control at the bottom edge of the transcript. In the question card shot, the "1 question waiting" pill then covers the card.
Root cause
Both specs click a control in the transcript while the transcript still moves it. Playwright's stability check fails ("element is not stable"). On the first retry, Playwright calls
element.scrollIntoView({ block: "end", inline: "end" })on the control (_retryPointerActionin playwright-core). That scrolls the transcript up so the control's bottom is at the bottom edge. The transcript treats this as a reader scroll and stops following the latest message, and the shot shows that place.What moves the control:
Fix
Each desktop spec waits for the state that ends the movement before it clicks:
question-cards.spec.tswaits for the "Asked Pick the canary region" record. Only the desktop case waits: a phone shows the form in a sheet, and the mobile shots stay as they are.conversation-inbox-items.spec.tswaits until the question card is in full view (toBeInViewport({ ratio: 1 })), which is true only after the transcript followed the card.Other specs can also click a transcript control that is still moving. A general guard needs a hook into Playwright's retry, which this PR does not add.
conversation-question-card__desktopconversation-unsent-answers__desktopvia @BYK.
--
View Session [Sentry]