mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
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:
co-authored by
Thomas Petersen
parent
4bc0f890f7
commit
5f2dbdca78
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user