From 1f68d9281e7a081797c115de902e2a09ae49cc36 Mon Sep 17 00:00:00 2001 From: Yash Kakade Date: Mon, 30 Nov 2026 15:03:47 -0500 Subject: [PATCH] Start the WebKit first-message tests after the Home intro --- app/tests/first-message-thinking.test.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/tests/first-message-thinking.test.tsx b/app/tests/first-message-thinking.test.tsx index a1d8886e86..bc5ba926e8 100644 --- a/app/tests/first-message-thinking.test.tsx +++ b/app/tests/first-message-thinking.test.tsx @@ -556,6 +556,12 @@ async function open( }); page.on("pageerror", (error) => console.error(error)); const [pathname, search = ""] = path.split("?"); + // Measure Send from a settled Home. WebKit can crash while it draws the first-visit + // intro, before Send. home-holds-still.test.tsx covers that intro in both engines. + if (path === "/" && engine === "webkit") + await page.addInitScript(() => + window.sessionStorage.setItem("openbot.home-intro-played", "1"), + ); const query = new URLSearchParams(search); query.set("theme", theme); await page.goto(`http://127.0.0.1:${port}${pathname}?${query}`);