From cc97970b1d55388dcc626ff5e46d9d2766306bbc Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Thu, 6 Aug 2026 17:06:37 -0700 Subject: [PATCH] test: use fast user-event instance in SettingsModal CLI-binary tests Align SettingsModal.cliBinaryVisibility.test.tsx with the harness's documented fast user-event options ({ delay: null, pointerEventsCheck: 0 }, FN-6612 velocity convention). Removes default inter-keystroke delay and pointer-events tree walks; file test-time dropped ~1.9s -> ~0.5s. --- .../__tests__/SettingsModal.cliBinaryVisibility.test.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/dashboard/app/components/__tests__/SettingsModal.cliBinaryVisibility.test.tsx b/packages/dashboard/app/components/__tests__/SettingsModal.cliBinaryVisibility.test.tsx index 2a46f8c4cd..2681f0af7b 100644 --- a/packages/dashboard/app/components/__tests__/SettingsModal.cliBinaryVisibility.test.tsx +++ b/packages/dashboard/app/components/__tests__/SettingsModal.cliBinaryVisibility.test.tsx @@ -93,7 +93,8 @@ describe("SettingsModal CLI Binary visibility", () => { }); it("keeps CLI Binary reachable from the Basic-mode desktop nav", async () => { - const user = userEvent.setup(); + // FNXC:SettingsModalTests 2026-08-07-00:06: match the harness's fast user-event instance (FN-6612 feedback-loop velocity); the SettingsModal split files are the dashboard's slowest tests when they use default user-event delays and pointer-events tree walks. + const user = userEvent.setup({ delay: null, pointerEventsCheck: 0 }); await renderBasicSettings(); expect(screen.getByRole("checkbox", { name: "Advanced settings" })).not.toBeChecked(); @@ -106,7 +107,7 @@ describe("SettingsModal CLI Binary visibility", () => { }); it("returns CLI Binary for a Basic-mode search and lets operators open it", async () => { - const user = userEvent.setup(); + const user = userEvent.setup({ delay: null, pointerEventsCheck: 0 }); await renderBasicSettings(); expect(document.querySelector(".settings-mobile-section-picker")).toBeNull(); @@ -118,7 +119,7 @@ describe("SettingsModal CLI Binary visibility", () => { }); it("keeps CLI Binary available after Advanced settings is enabled", async () => { - const user = userEvent.setup(); + const user = userEvent.setup({ delay: null, pointerEventsCheck: 0 }); await renderBasicSettings(); await user.click(screen.getByRole("checkbox", { name: "Advanced settings" }));