The best way to control Claude Code, Codex and more from any computer or phone
test(web): keep the work heading test inside the viewport (#30613)
Lakshmi Tanmay committed
Nov 6, 2026 at 01:52 UTC
6bd73c3662fbd12921058599909b55a1a7e9c805
1 file changed
+3
-1
apps/web/src/components/chat/MessagesTimeline.browser.test.tsx
+3
-1
@@ -221,7 +221,9 @@ describe("MessagesTimeline work rows", () => {
221
const props = baseProps();
222
const runId = RunId.make("completed-run");
223
const container = document.createElement("div");
224
- container.style.cssText = "height: 600px; width: 900px; display: flex; flex-direction: column;";
224
+ // Keep the heading on screen so Playwright does not scroll it before clicking.
225
+ container.style.cssText =
226
+ "height: min(600px, 100vh); width: 900px; display: flex; flex-direction: column;";
227
await using screen = await render(
228
<MessagesTimeline
229
{...props}