From 59e1293c10786102096a5ab513b4628a9082b0e7 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Wed, 6 May 2026 15:09:00 -0700 Subject: [PATCH] test(e2e/agents): add Playwright config for cloud-agents suite MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Targets http://localhost:3000 (Next.js dev server) directly. The agents UI lives in App Router routes which only render under `next dev`, not the proxy's static export — separate config skips the proxy globalSetup that the rest of the suite needs. --- .../e2e_tests/playwright.agents.config.ts | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ui/litellm-dashboard/e2e_tests/playwright.agents.config.ts diff --git a/ui/litellm-dashboard/e2e_tests/playwright.agents.config.ts b/ui/litellm-dashboard/e2e_tests/playwright.agents.config.ts new file mode 100644 index 00000000000..d12d9107577 --- /dev/null +++ b/ui/litellm-dashboard/e2e_tests/playwright.agents.config.ts @@ -0,0 +1,37 @@ +/** + * Playwright config for the cloud-agents suite. + * + * The agents UI lives in the Next.js App Router, which only renders under + * `next dev` (not the proxy's static `output: "export"`). This config + * targets http://localhost:3000 directly and skips the proxy globalSetup + * that the rest of the suite needs. + * + * Run with: + * NEXT_PUBLIC_USE_MOCK_AGENTS=true pnpm dev + * pnpm exec playwright test --config e2e_tests/playwright.agents.config.ts + */ +import { defineConfig, devices } from "@playwright/test"; + +export default defineConfig({ + testDir: "./tests/agents", + testMatch: ["**/*.spec.ts"], + fullyParallel: true, + forbidOnly: !!process.env.CI, + retries: process.env.CI ? 2 : 0, + workers: process.env.CI ? 1 : undefined, + reporter: "list", + use: { + baseURL: process.env.AGENTS_DEV_URL ?? "http://localhost:3000", + trace: "on-first-retry", + actionTimeout: 15_000, + navigationTimeout: 30_000, + }, + projects: [ + { + name: "chromium", + use: { ...devices["Desktop Chrome"] }, + }, + ], + timeout: 60_000, + expect: { timeout: 10_000 }, +});