Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Train fix (#7938): the library test renders in Advanced mode, where the files button shows

milind-sonida019273f9ee
diff --git a/src/components/SkillsSection.behavior.test.ts b/src/components/SkillsSection.behavior.test.ts
index 651297b67f..eff65a2532 100644
--- a/src/components/SkillsSection.behavior.test.ts
+++ b/src/components/SkillsSection.behavior.test.ts
@@ -20,6 +20,7 @@ vi.mock("react", async (original) => ({
useEffect: () => {},
}));
vi.mock("@/hooks/use-modal-dialog", () => ({ useModalDialog: fixture.modal }));
+vi.mock("@/lib/interface-mode", async (original) => ({ ...await original<typeof import("@/lib/interface-mode")>(), useAdvancedMode: () => true }));
vi.mock("@/state/store", () => ({ useStore: () => ({ state: { bots: [{ id: "bot", name: "Pepper" }], config: { features: { skillsLibrary: true } } } }) }));
vi.mock("./bot-settings/BotEditorContext", () => ({ useBotEditor: () => ({ request: fixture.request }) }));