Fix flaky ui test

This commit is contained in:
yuneng-jiang
2025-12-05 17:55:07 -08:00
parent 4d39a1a18f
commit 1f2bf08136
@@ -42,7 +42,11 @@ const createQueryClient = () =>
defaultOptions: {
queries: {
retry: false,
gcTime: 0,
staleTime: Infinity,
gcTime: Infinity,
refetchOnWindowFocus: false,
refetchOnReconnect: false,
refetchOnMount: false,
},
},
});
@@ -140,7 +144,7 @@ describe("Add Model Tab", () => {
);
expect(await screen.findByRole("tab", { name: "Add Model" })).toBeInTheDocument();
});
}, 10000); // This test is flaky, adding a timeout until we find a better solution
it("should display both Add Model and Add Auto Router tabs", async () => {
const props = createTestProps();