From c7435dde9552388e67e4e941f2137c4432fef846 Mon Sep 17 00:00:00 2001 From: jesus Date: Wed, 14 Oct 2026 09:44:18 +0000 Subject: [PATCH] test(ui): use row semantics in model hub integration Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../src/components/public_model_hub.integration.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/components/public_model_hub.integration.test.tsx b/ui/litellm-dashboard/src/components/public_model_hub.integration.test.tsx index b77faace53c..98b6669e4ce 100644 --- a/ui/litellm-dashboard/src/components/public_model_hub.integration.test.tsx +++ b/ui/litellm-dashboard/src/components/public_model_hub.integration.test.tsx @@ -368,7 +368,7 @@ describe("PublicModelHub", () => { respondWith([model({ model_group: "jev-latest", providers: ["typesafe"], mode: "evaluation" })]); renderHub(); - fireEvent.click(await screen.findByRole("button", { name: "jev-latest" })); + fireEvent.click(await screen.findByRole("row", { name: "Open model jev-latest" })); const example = (await screen.findByText(/\/v1\/systemone/)).closest("pre"); expect(example).toHaveTextContent('"model": "jev-latest"'); @@ -378,7 +378,7 @@ describe("PublicModelHub", () => { it("keeps the chat completions usage example for a chat model", async () => { renderHub(); - fireEvent.click(await screen.findByRole("button", { name: "gpt-4" })); + fireEvent.click(await screen.findByRole("row", { name: "Open model gpt-4" })); const example = (await screen.findByText(/chat\.completions\.create/)).closest("pre"); expect(example).toHaveTextContent('model="gpt-4"');