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 <thomasp@squareup.com>
Signed-off-by: Thomas Petersen <thomasp@squareup.com>
This commit is contained in:
npub1cr79sy35cdv9vqsnnmkrgl8d0wp27edk7mqsw2p5s52upsrv28pszw3kur
2026-07-31 08:07:36 +02:00
co-authored by Thomas Petersen
parent 4bc0f890f7
commit 5f2dbdca78
+3 -1
View File
@@ -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";