From 950cb4b4fbbf934a97ac7bfd460cc3dac82f79a1 Mon Sep 17 00:00:00 2001 From: arookieofc <2128194521@qq.com> Date: Mon, 9 Nov 2026 17:51:55 +0800 Subject: [PATCH] test(e2e): match computed-style serialization in the Inter font assertion (#2305) --- e2e/settings.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/settings.spec.ts b/e2e/settings.spec.ts index e7b3940fa..430c698b8 100644 --- a/e2e/settings.spec.ts +++ b/e2e/settings.spec.ts @@ -61,7 +61,8 @@ test("font picker supports manual families and CJK fallback in browser developme expect(interLoaded).toBe(true); await family.fill("Inter"); await family.press("Enter"); - await expect(dialog.getByLabel("Font preview")).toHaveCSS("font-family", /^"Inter", "Inter Variable",/); + // Computed styles drop redundant quotes around single-token families ("Inter" -> Inter). + await expect(dialog.getByLabel("Font preview")).toHaveCSS("font-family", /^Inter, "Inter Variable",/); const fallback = dialog.getByRole("combobox", { name: "Fallback font", exact: true }); await family.fill("Maple Mono NF"); await family.press("Enter");