Merge pull request #37227 from BerriAI/litellm_/resolve-stacked-pr-conflicts-e95c06

test(ui): settle the in-flight search before the loading tests end
This commit is contained in:
yuneng-jiang 2026-08-17 17:34:41 -07:00 • committed by GitHub
commit 175b639bc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,6 +123,8 @@ describe("SearchToolTester", () => {
const searchButton = screen.getByRole("button", { name: /search/i });
await user.click(searchButton);
expect(screen.getByText("Searching...")).toBeInTheDocument();
expect(await screen.findByText("Test Result 1")).toBeInTheDocument();
});
it("should display search results after successful search", async () => {
@ -407,6 +409,8 @@ describe("SearchToolTester", () => {
await user.click(searchButton);
expect(input).toBeDisabled();
expect(searchButton).toBeDisabled();
await waitFor(() => expect(searchButton).toBeEnabled());
});
it("should display result links that open in new tab", async () => {