mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Align integration assertions with typography defaults
Co-authored-by: Princess Donut <b238ea756dee4d98afa5883fc7f1de61eeabe65bf700e3a5a5a80db5e42e2c2b@buzz.block.builderlab.xyz> Signed-off-by: Princess Donut <b238ea756dee4d98afa5883fc7f1de61eeabe65bf700e3a5a5a80db5e42e2c2b@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -732,9 +732,11 @@ test("moves agent actions into an overflow menu in a narrow view", async ({
|
||||
});
|
||||
|
||||
await expect(page.getByTestId("agent-defaults-button")).toBeVisible();
|
||||
// The app-wide default renders text-base at 17.142857px with Tailwind's
|
||||
// 1.5 line-height ratio, which rounds to a 26px one-line scroll height.
|
||||
await expect(
|
||||
page.getByText("Set up and manage your agents.", { exact: true }),
|
||||
).toHaveJSProperty("scrollHeight", 24);
|
||||
).toHaveJSProperty("scrollHeight", 26);
|
||||
|
||||
await page.getByTestId("agents-page-content").evaluate((element) => {
|
||||
(element as HTMLElement).style.width = "600px";
|
||||
|
||||
@@ -2020,7 +2020,7 @@ test("connected first-community profile keeps Back bottom-left and balances the
|
||||
);
|
||||
expect(nameKeyStyles).toMatchObject({
|
||||
borderRadius: "16px",
|
||||
fontSize: "14px",
|
||||
fontSize: "15px",
|
||||
});
|
||||
await expect(page.getByText("Your username", { exact: true })).toBeVisible();
|
||||
await expect(page.getByTestId("community-onboarding-flow")).toHaveAttribute(
|
||||
|
||||
Reference in New Issue
Block a user