Align smoke assertions with typography preferences

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:
Princess Donut
2026-08-12 15:38:51 +01:00
parent 10224c2159
commit d914d31f73
2 changed files with 4 additions and 8 deletions
@@ -596,7 +596,7 @@ test("appearance groups theme and preferences into labeled rows", async ({
(lightModeButtonBox.x + lightModeButtonBox.width / 2),
),
).toBeLessThanOrEqual(0.5);
await expect(colorModeIndicator).toHaveCSS("transition-duration", "0.25s");
await expect(colorModeIndicator).toHaveCSS("transition-duration", "0.2s");
await themeCard.getByTestId("appearance-mode-dark").click();
await waitForAnimations(page);
+3 -7
View File
@@ -302,9 +302,8 @@ test("pairing completion updates the final step and resets after leaving", async
const confirmButton = confirmation.getByTestId("confirm-sas");
const cancelButton = confirmation.getByTestId("deny-sas");
const confirmationBox = await confirmation.boundingBox();
const confirmationTitleBox = await confirmation
.getByTestId("pairing-sas-title")
.boundingBox();
const confirmationTitle = confirmation.getByTestId("pairing-sas-title");
const confirmationTitleBox = await confirmationTitle.boundingBox();
const confirmationCodeBox = await confirmationCode.boundingBox();
const confirmationActionsBox = await confirmation
.getByTestId("pairing-sas-actions")
@@ -343,10 +342,7 @@ test("pairing completion updates the final step and resets after leaving", async
await expect(
confirmation.getByText(/Only confirm if you started this pairing/),
).toHaveCount(0);
await expect(confirmation.getByTestId("pairing-sas-title")).toHaveCSS(
"font-size",
"16px",
);
await expect(confirmationTitle).toHaveCSS("font-size", "17.1429px");
mkdirSync(SCREENSHOT_DIR, { recursive: true });
await waitForAnimations(page);