fix: close ColorPicker review findings and record acceptance
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user