The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(e2e/ui): wait for the filtered budget list before clicking a row action
Yuneng Jiang593fa5921a0c
diff --git a/tests/e2e/ui/tests/budgets/budgets.spec.ts b/tests/e2e/ui/tests/budgets/budgets.spec.tsindex 1ad1e488d25..89691c05605 100644--- a/tests/e2e/ui/tests/budgets/budgets.spec.ts+++ b/tests/e2e/ui/tests/budgets/budgets.spec.ts@@ -4,6 +4,8 @@ import { Page } from "../../fixtures/pages";import { navigateToPage, dismissFeedbackPopup } from "../../helpers/navigation";import { masterKey } from "../../helpers/traffic";+const BUDGET_LIST_PATH = "/management/v1/budgets";+interface StoredBudget {budget_id: string;max_budget: number | null;@@ -30,7 +32,17 @@ async function createBudgetViaApi(page: PlaywrightPage, budget: Partial<StoredBu}async function searchForBudget(page: PlaywrightPage, budgetId: string): Promise<void> {+ const searched = page.waitForResponse((response) => {+ const url = new URL(response.url());+ return (+ response.request().method() === "GET" &&+ url.pathname === BUDGET_LIST_PATH &&+ url.searchParams.get("q") === budgetId+ );+ });await page.getByPlaceholder("Search by budget ID").fill(budgetId);+ const response = await searched;+ expect(response.ok(), `GET ${BUDGET_LIST_PATH}?q=${budgetId} (${response.status()})`).toBe(true);}test.describe("Budgets", () => {