"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
test(frontend): wait out the model-list fetch before narrowing effort levels
Yufeng He4c1d80910926
diff --git a/frontend/src/pages/__tests__/SettingsClaudeCliModels.test.tsx b/frontend/src/pages/__tests__/SettingsClaudeCliModels.test.tsxindex b9c81267d..b7e105ddd 100644--- a/frontend/src/pages/__tests__/SettingsClaudeCliModels.test.tsx+++ b/frontend/src/pages/__tests__/SettingsClaudeCliModels.test.tsx@@ -122,7 +122,9 @@ describe("Settings with the claude-cli provider", () => {it("narrows the levels when a model without them is picked", async () => {apiMock.getLLMSettings.mockResolvedValue(llmSettings());render(<Settings />);- await waitFor(() => expect(effortOptions()).toContain("xhigh"));+ // xhigh is also offered by the provider fallback while the per-model+ // levels are still loading, so wait for the fetch to actually land.+ expect(await screen.findByText("Loaded 3 available models.")).toBeInTheDocument();fireEvent.change(screen.getByRole("combobox", { name: "Model" }), {target: { value: "claude-haiku-4-5-20251001" },