From 4b4b8d93053e3d511306bad107e2df0cd789b6dc Mon Sep 17 00:00:00 2001 From: Shakker Date: Tue, 12 May 2026 16:43:54 +0100 Subject: [PATCH] test: rely on context detail text --- ui/src/ui/chat/run-controls.test.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/ui/src/ui/chat/run-controls.test.ts b/ui/src/ui/chat/run-controls.test.ts index 05a33f93277..9f0ac6e99c3 100644 --- a/ui/src/ui/chat/run-controls.test.ts +++ b/ui/src/ui/chat/run-controls.test.ts @@ -286,7 +286,6 @@ describe("context notice", () => { expect(lowNotice!.querySelector(".context-notice__detail")?.textContent).toBe("46k / 200k"); expect(container.querySelectorAll(".context-notice__meter")).toHaveLength(1); expect(container.querySelector(".context-notice__icon")).toBeNull(); - expect(container.textContent).not.toContain("757.3k / 200k"); const session: GatewaySessionRow = { key: "main", @@ -299,7 +298,6 @@ describe("context notice", () => { render(renderContextNotice(session, 200_000), container); expect(getContextNoticeViewModel(session, 200_000)?.compactRecommended).toBe(true); - expect(container.textContent).not.toContain("757.3k / 200k"); const notice = container.querySelector(".context-notice"); expect(notice).toBeInstanceOf(HTMLElement); expect(notice!.textContent?.replace(/\s+/gu, " ").trim()).toBe("95% context used 190k / 200k");