mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-20 05:04:24 +00:00
test(ui): use row semantics in model hub integration
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
58b76562a9
commit
c7435dde95
1 changed files with 2 additions and 2 deletions
|
|
@ -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"');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue