20 lines
685 B
TypeScript
20 lines
685 B
TypeScript
import {defineConfig, devices} from "@playwright/test";
|
|
|
|
/**
|
|
* E2E tests run against the deployed stack (nginx UI container + ac-code-server), i.e.
|
|
* `./manage-ac.sh deploy` must be running and the `ac` project ingested. The UI is served at :5174 and
|
|
* proxies /api to the server, so tests exercise the real API — no mocking.
|
|
*/
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
timeout: 30_000,
|
|
expect: {timeout: 10_000},
|
|
fullyParallel: true,
|
|
reporter: [["list"]],
|
|
use: {
|
|
baseURL: process.env.AC_UI_URL ?? "http://localhost:5174",
|
|
trace: "on-first-retry",
|
|
},
|
|
projects: [{name: "chromium", use: {...devices["Desktop Chrome"]}}],
|
|
});
|