mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user