mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-03 04:49:26 +00:00
The Python import namespace (coworker) and the live auth config strings are intentionally unchanged.
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
// LIVE smoke config — runs against the REAL backend (openworker-server on :8765) and a REAL model.
|
|
// Deliberately separate from playwright.config.ts (testDir ./e2e), so `npm run e2e` and CI never
|
|
// pick these up. Run manually with `npm run e2e:live` when the backend is up and a model is set.
|
|
// Nondeterministic and costs a few model tokens per run — a confidence smoke, not an assertion gate.
|
|
const PORT = 5199;
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e-live",
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
retries: 0,
|
|
reporter: [["list"]],
|
|
// Model + tool execution take real time.
|
|
timeout: 180_000,
|
|
use: {
|
|
baseURL: `http://localhost:${PORT}`,
|
|
trace: "on-first-retry",
|
|
},
|
|
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
|
|
webServer: {
|
|
// The dev server's default API base is 127.0.0.1:8765 — i.e. the real backend (no mocks here).
|
|
command: `npm run dev -- --port ${PORT} --strictPort`,
|
|
url: `http://localhost:${PORT}`,
|
|
reuseExistingServer: true,
|
|
timeout: 120_000,
|
|
},
|
|
});
|