From f7c9871b196c2b6765f46b101d1d3acaf62762bc Mon Sep 17 00:00:00 2001 From: huyz <739820174@qq.com> Date: Tue, 29 Sep 2026 12:11:37 +0800 Subject: [PATCH] test(renderer): give the repeated project turn link test an explicit 15s budget The test renders the full App, opens the project workspace and re-anchors the same turn twice inside a loop, so its cold cost sits above the 5s vitest default on loaded runners. Fresh runs of main currently fail on Node 24 / macos-14 with 'Test timed out in 5000ms' (#532), which keeps the required check red for every open PR. The same commit passed Node 24 / ubuntu-latest in that run and passed both platforms on a plain rerun, so this is per-test budget, not a hang. 15s matches the other full-App tests in this file, and is the same treatment #531 gave the toolbar test. Refs #532 --- apps/desktop/renderer/test/App.test.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/desktop/renderer/test/App.test.tsx b/apps/desktop/renderer/test/App.test.tsx index 3aa008d3..cb479e9e 100644 --- a/apps/desktop/renderer/test/App.test.tsx +++ b/apps/desktop/renderer/test/App.test.tsx @@ -2664,6 +2664,9 @@ it("opens project management independently from Goals through the module rail", expect(screen.queryByRole("heading", { name: "项目管理", level: 1 })).not.toBeInTheDocument(); }); +// Renders the full App, opens the project workspace and re-anchors the same +// turn twice, so on slower runners its cold cost sits above the 5s default and +// fails fresh runs of main (#532). 15s matches the other full-App tests here. it("reanchors a repeated project turn link without replacing the conversation draft", async () => { const scrollIntoView = vi.fn(); Object.defineProperty(Element.prototype, "scrollIntoView", { configurable: true, value: scrollIntoView }); @@ -2700,7 +2703,7 @@ it("reanchors a repeated project turn link without replacing the conversation dr } expect(bridge.createTurn).not.toHaveBeenCalled(); expect(bridge.createSessionTurn).not.toHaveBeenCalled(); -}); +}, 15_000); it("counts only actionable inbox items and opens an approval's exact employee session and turn", async () => { const scrollIntoView = vi.fn();