From 5f2dbdca787f5b2e92574b32c53bd972169cae40 Mon Sep 17 00:00:00 2001 From: npub1cr79sy35cdv9vqsnnmkrgl8d0wp27edk7mqsw2p5s52upsrv28pszw3kur Date: Fri, 31 Jul 2026 08:07:36 +0200 Subject: [PATCH] test(desktop): update narrow-view description height for Body 14 The compact agents-header test asserts the one-line page description scrollHeight to prove it has not wrapped. The description renders at text-base, which the consolidated ramp folds to Body 14 with a 1.25rem (20px) line-height, so the single-line height is now 20, not 24. Co-authored-by: Thomas Petersen Signed-off-by: Thomas Petersen --- desktop/tests/e2e/agents.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/tests/e2e/agents.spec.ts b/desktop/tests/e2e/agents.spec.ts index 3cbe097c0..87129a11b 100644 --- a/desktop/tests/e2e/agents.spec.ts +++ b/desktop/tests/e2e/agents.spec.ts @@ -723,9 +723,11 @@ test("moves agent actions into an overflow menu in a narrow view", async ({ }); await expect(page.getByTestId("agent-defaults-button")).toBeVisible(); + // One line of the page description: text-base is Body 14 on the + // consolidated ramp, whose line-height is 1.25rem (20px). await expect( page.getByText("Set up and manage your agents.", { exact: true }), - ).toHaveJSProperty("scrollHeight", 24); + ).toHaveJSProperty("scrollHeight", 20); await page.getByTestId("agents-page-content").evaluate((element) => { (element as HTMLElement).style.width = "600px";