From 6290c2f8ac7c0434c9135be5a027e6830ce755d5 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Tue, 18 Aug 2026 00:43:33 +0200 Subject: [PATCH] fix(desktop): align font size regression with base scale --- packages/desktop/e2e/appearance-font-size.electron.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/desktop/e2e/appearance-font-size.electron.mjs b/packages/desktop/e2e/appearance-font-size.electron.mjs index 8f9fd16db..07ab1df92 100644 --- a/packages/desktop/e2e/appearance-font-size.electron.mjs +++ b/packages/desktop/e2e/appearance-font-size.electron.mjs @@ -15,11 +15,11 @@ export async function runAppearanceFontSizeRegression(page) { await page.getByLabel("Theme: System", { exact: true }).click(); await page.getByText("Pure black", { exact: true }).click(); - const input = page.getByRole("textbox", { name: "Interface font size" }); + const input = page.getByRole("textbox", { name: "Base font size" }); const sectionTitle = page.getByText("Theme", { exact: true }).first(); await input.waitFor({ state: "visible", timeout: SETTINGS_TIMEOUT_MS }); - assert((await input.inputValue()) === "16", "Interface font size did not start at 16px"); + assert((await input.inputValue()) === "14", "Base font size did not start at 14px"); assert( (await readFontSize(sectionTitle)) === "12px", "Theme label did not start at the default 12px ramp size", @@ -30,14 +30,14 @@ export async function runAppearanceFontSizeRegression(page) { await page.waitForFunction( () => { - const inputElement = document.querySelector('input[aria-label="Interface font size"]'); + const inputElement = document.querySelector('input[aria-label="Base font size"]'); const themeLabel = [...document.querySelectorAll("div")].find( (element) => element.children.length === 0 && element.textContent?.trim() === "Theme", ); return ( inputElement?.value === "17" && themeLabel instanceof HTMLElement && - getComputedStyle(themeLabel).fontSize === "13px" + getComputedStyle(themeLabel).fontSize === "15px" ); }, undefined,