Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/tests/first-message-thinking.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down