feat(webui): refine day-night themes and interaction continuity

This commit is contained in:
Xubin Ren committed 2026-11-07 23:19:32 +08:00
1 parent 12c7d116a0
commit e8544a79a6
32 files changed
+613 -29

No files matched your search

+3
View File
@@ -238,7 +238,10 @@ test("unfinished numeric input reports an error instead of acting like a cleared
expect(await input.evaluate((element: HTMLInputElement) => element.validity.badInput)).toBe(true);
await input.press("Enter");
await expect(input).toHaveAttribute("aria-invalid", "true");
// The pointer can leave the editor while the user reads the validation hint.
await page.mouse.move(0, 0);
await expect(page.getByRole("tooltip", { name: /Your text remains at 18 px\./ })).toBeVisible();
await expect(input).toBeFocused();
await expect(paragraph).toHaveCSS("font-size", "18px");
await input.click();
await input.press("Escape");