fix: close ColorPicker review findings and record acceptance

This commit is contained in:
maoyingjie
2026-10-27 17:56:32 +08:00
parent 63606399e3
commit 74cd597b81
5 changed files with 25 additions and 9 deletions
+5
View File
@@ -124,6 +124,11 @@ describe("ColorField documentation", () => {
const w = render(RenderFunction);
// Let mounted field metadata and child refs settle before exercising native focus.
await flushPromises();
// Vue timestamps bubbled native events and ignores events at or before an
// ancestor listener's attachment time. Keep focus in a later clock tick,
// as it would be after a user action, without depending on machine speed.
vi.useFakeTimers({ toFake: ["Date"] });
vi.setSystemTime(Date.now() + 1);
inputs(w)[0]!.element.focus();
await flushPromises();
expect(w.get("[data-slot=color-field]").attributes("data-focused")).toBe(