test(e2e): match computed-style serialization in the Inter font assertion (#2305)

Цей коміт міститься в:
arookieofc committed 2026-11-09 17:51:55 +08:00
1 джерело c103a148f2
коміт 950cb4b4fb
1 file changed
+2 -1
+2 -1
Переглянути файл
@@ -61,7 +61,8 @@ test("font picker supports manual families and CJK fallback in browser developme
expect(interLoaded).toBe(true); expect(interLoaded).toBe(true);
await family.fill("Inter"); await family.fill("Inter");
await family.press("Enter"); 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 }); const fallback = dialog.getByRole("combobox", { name: "Fallback font", exact: true });
await family.fill("Maple Mono NF"); await family.fill("Maple Mono NF");
await family.press("Enter"); await family.press("Enter");