From 90ab0abb3b3ec6555783c511c0aa52f42cbd81f4 Mon Sep 17 00:00:00 2001 From: morgmart <98432065+morgmart@users.noreply.github.com> Date: Wed, 12 Aug 2026 23:23:41 -0700 Subject: [PATCH] Update font size preference tests for the 13/14/15 ramp The virtual typography rem values changed when Smaller/Default/Larger moved from 14/15/16px to 13/14/15px standard text; the tests assert exact --buzz-type-rem pixel values and needed the new expectations. Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> --- desktop/src/shared/lib/fontSizePreference.test.mjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/desktop/src/shared/lib/fontSizePreference.test.mjs b/desktop/src/shared/lib/fontSizePreference.test.mjs index dae7c3533..9cdab98b6 100644 --- a/desktop/src/shared/lib/fontSizePreference.test.mjs +++ b/desktop/src/shared/lib/fontSizePreference.test.mjs @@ -53,7 +53,7 @@ test("persists and applies the selected font size across the app", () => { assert.equal(preference.getFontSize(), "smaller"); assert.equal(values.get(preference.FONT_SIZE_STORAGE_KEY), "smaller"); assert.equal(attributes.get("data-font-size"), "smaller"); - assert.equal(styleValues.get("--buzz-type-rem"), "16px"); + assert.equal(styleValues.get("--buzz-type-rem"), "14.857143px"); }); test("previews a font size without changing the saved preference", () => { @@ -63,11 +63,11 @@ test("previews a font size without changing the saved preference", () => { assert.equal(preference.getFontSize(), "smaller"); assert.equal(values.get(preference.FONT_SIZE_STORAGE_KEY), "smaller"); assert.equal(attributes.get("data-font-size"), "larger"); - assert.equal(styleValues.get("--buzz-type-rem"), "20.114286px"); + assert.equal(styleValues.get("--buzz-type-rem"), "18.857143px"); preference.previewFontSize(null); assert.equal(attributes.get("data-font-size"), "smaller"); - assert.equal(styleValues.get("--buzz-type-rem"), "17.6px"); + assert.equal(styleValues.get("--buzz-type-rem"), "16.342857px"); }); test("initializes from the stored font size", () => { @@ -76,7 +76,7 @@ test("initializes from the stored font size", () => { preference.initializeFontSizePreference(); assert.equal(preference.getFontSize(), "larger"); assert.equal(attributes.get("data-font-size"), "larger"); - assert.equal(styleValues.get("--buzz-type-rem"), "18.285714px"); + assert.equal(styleValues.get("--buzz-type-rem"), "17.142857px"); }); test("applies font size changes from another window", () => { @@ -84,5 +84,5 @@ test("applies font size changes from another window", () => { windowListeners.get("storage")({ key: preference.FONT_SIZE_STORAGE_KEY }); assert.equal(preference.getFontSize(), "smaller"); assert.equal(attributes.get("data-font-size"), "smaller"); - assert.equal(styleValues.get("--buzz-type-rem"), "16px"); + assert.equal(styleValues.get("--buzz-type-rem"), "14.857143px"); });