Skip to content

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]

1.1 KB
Raw Blame
import { defineConfig, devices } from "@playwright/test";
import { UI_BASE_URL } from "./constants";

/**
 * App Router migration smoke under a non-root mount. Boot the proxy with the same
 * SERVER_ROOT_PATH (e.g. SERVER_ROOT_PATH=/litellm) and a UI built for it before
 * running. globalSetup logs in at `${SERVER_ROOT_PATH}/ui/login` so the admin
 * storage state is valid under the prefix.
 */
export default defineConfig({
  testDir: "./tests/migration",
  testMatch: ["migratedPages.spec.ts"],
  fullyParallel: true,
  forbidOnly: !!process.env.CI,
  retries: 0,
  grep: /navigates directly between two migrated pages/,
  workers: process.env.CI ? 1 : undefined,
  reporter: "list",
  use: {
    baseURL: UI_BASE_URL,
    trace: "on-first-retry",
    actionTimeout: 15 * 1000,
    navigationTimeout: 30 * 1000,
    launchOptions: {
      slowMo: process.env.SLOWMO ? parseInt(process.env.SLOWMO, 10) || 0 : 0,
    },
  },
  projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
  timeout: 3 * 60 * 1000,
  expect: { timeout: 10 * 1000 },
  globalSetup: require.resolve("./migration.serverRootPath.globalSetup"),
});