From d914d31f73301419fd00dee0403ab6981a873dac Mon Sep 17 00:00:00 2001 From: Princess Donut Date: Wed, 12 Aug 2026 15:38:51 +0100 Subject: [PATCH] Align smoke assertions with typography preferences Co-authored-by: Princess Donut Signed-off-by: Princess Donut --- desktop/tests/e2e/buzz-theme-screenshots.spec.ts | 2 +- desktop/tests/e2e/mobile-pairing-qr.spec.ts | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/desktop/tests/e2e/buzz-theme-screenshots.spec.ts b/desktop/tests/e2e/buzz-theme-screenshots.spec.ts index efabbe59d..32c431bcf 100644 --- a/desktop/tests/e2e/buzz-theme-screenshots.spec.ts +++ b/desktop/tests/e2e/buzz-theme-screenshots.spec.ts @@ -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); diff --git a/desktop/tests/e2e/mobile-pairing-qr.spec.ts b/desktop/tests/e2e/mobile-pairing-qr.spec.ts index 659fa0e96..5980b1775 100644 --- a/desktop/tests/e2e/mobile-pairing-qr.spec.ts +++ b/desktop/tests/e2e/mobile-pairing-qr.spec.ts @@ -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);