diff --git a/tests/e2e/ui/helpers/traffic.ts b/tests/e2e/ui/helpers/traffic.ts index 534e6457411..b534c475221 100644 --- a/tests/e2e/ui/helpers/traffic.ts +++ b/tests/e2e/ui/helpers/traffic.ts @@ -139,7 +139,7 @@ export async function waitForSpendLog( lastStatus = res.status(); if (res.ok()) { const body = await res.json(); - const rows = Array.isArray(body) ? body : (body?.data ?? []); + const rows = Array.isArray(body) ? body : body?.data ?? []; if (rows.length > 0) { return; } diff --git a/tests/e2e/ui/tests/logs/logs.spec.ts b/tests/e2e/ui/tests/logs/logs.spec.ts index dfc876d73c4..c3becc9c3e8 100644 --- a/tests/e2e/ui/tests/logs/logs.spec.ts +++ b/tests/e2e/ui/tests/logs/logs.spec.ts @@ -102,7 +102,9 @@ test.describe("Logs page", () => { model: CHAT_MODEL_A, prompt, }); - expect(callId, "call id must differ from the provider response id for this check to mean anything").not.toBe(requestId); + expect(callId, "call id must differ from the provider response id for this check to mean anything").not.toBe( + requestId, + ); await waitForSpendLog(request, requestId); await navigateToPage(page, Page.Logs); @@ -113,12 +115,17 @@ test.describe("Logs page", () => { const row = requestLogsRows(page).filter({ hasText: requestId }); await expect(row, `no logs row for call id ${callId}`).toHaveCount(1, { timeout: 30_000 }); - await expect(row, `Logs row for ${requestId} does not display its x-litellm-call-id ${callId}`).toContainText(callId); + await expect(row, `Logs row for ${requestId} does not display its x-litellm-call-id ${callId}`).toContainText( + callId, + ); await row.click(); const drawer = page.getByRole("dialog").first(); await expect(drawer.getByText("Request & Response")).toBeVisible({ timeout: 20_000 }); - await expect(drawer.getByText(callId, { exact: false }).first(), `drawer does not show x-litellm-call-id ${callId}`).toBeVisible({ timeout: 10_000 }); + await expect( + drawer.getByText(callId, { exact: false }).first(), + `drawer does not show x-litellm-call-id ${callId}`, + ).toBeVisible({ timeout: 10_000 }); }); // Split out because only the copy path needs a secure context; folding it in would