From b599c7165eff150382a6c80f6cbaa0210285bffc Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 22 Sep 2026 07:25:28 +0000 Subject: [PATCH] style(e2e): format logs call id helper and spec Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/e2e/ui/helpers/traffic.ts | 2 +- tests/e2e/ui/tests/logs/logs.spec.ts | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) 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