From 3641f204decda151cc81088691d1676601c1daa7 Mon Sep 17 00:00:00 2001 From: esengine <359807859@qq.com> Date: Sat, 17 Oct 2026 21:54:30 -0700 Subject: [PATCH] test(desktop): settings search leaves out the hidden mod entry --- .../src/ui/settings-search-language.interaction.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/frontend-next/src/ui/settings-search-language.interaction.test.tsx b/desktop/frontend-next/src/ui/settings-search-language.interaction.test.tsx index cb7f501054..98772a3f13 100644 --- a/desktop/frontend-next/src/ui/settings-search-language.interaction.test.tsx +++ b/desktop/frontend-next/src/ui/settings-search-language.interaction.test.tsx @@ -71,7 +71,7 @@ it("finds extension blocks by the displayed section name without mounting them", const reads = [...calls]; await userEvent.type(find(), "Extension"); const hits = screen.getAllByRole("option"); - expect(hits.map((hit) => hit.dataset.target)).toEqual(SETTINGS.filter((entry) => entry.section === "ext").map((entry) => entry.anchor)); + expect(hits.map((hit) => hit.dataset.target)).toEqual(SETTINGS.filter((entry) => entry.section === "ext" && !entry.hidden).map((entry) => entry.anchor)); expect(hits.every((hit) => hit.querySelector(".where")?.textContent === "Extension")).toBe(true); expect(calls).toEqual(reads); expect(block("plugins")).toBeNull();