Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
test(webui): await lazy settings import deterministically
chengyongrucac39477ba83
diff --git a/webui/src/tests/app-layout.test.tsx b/webui/src/tests/app-layout.test.tsxindex 32abc7017..2ff477b02 100644--- a/webui/src/tests/app-layout.test.tsx+++ b/webui/src/tests/app-layout.test.tsx@@ -441,8 +441,12 @@ describe("App layout", () => {const sidebar = screen.getByRole("navigation", { name: "Sidebar navigation" });fireEvent.click(within(sidebar).getByRole("button", { name: "Settings" }));+ await act(async () => {+ await import("@/components/settings/SettingsView");+ });+expect(- await screen.findByRole("navigation", { name: "Settings sections" }),+ screen.getByRole("navigation", { name: "Settings sections" }),).toBeInTheDocument();expect(container.querySelectorAll("main")).toHaveLength(1);expect(screen.getByRole("heading", { level: 1, name: "Settings" })).toBeInTheDocument();