b41c1d2501
CI / Architecture Guardrails (push) Successful in 2m38s
CI / Assistant Split Regression (push) Successful in 3m33s
CI / Typecheck (push) Successful in 3m51s
CI / Lint (push) Successful in 5m2s
CI / E2E Tests (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / Release Images (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
rename(phase 1): CapaKraken → Nexus across code, UI, docs, CI (#61) Co-authored-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com> Co-committed-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com>
45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
/**
|
|
* Playwright configuration for running E2E tests against the LIVE dev server.
|
|
*
|
|
* Unlike the default playwright.config.ts (which spins up a dedicated test
|
|
* server with isolated test data), this config targets the already-running
|
|
* dev server at localhost:3100 and exercises real dev-DB data.
|
|
*
|
|
* Usage:
|
|
* pnpm --filter @nexus/web exec playwright test --config playwright.dev.config.ts
|
|
*
|
|
* Prerequisites:
|
|
* - Dev server running: pnpm run dev (or docker compose up)
|
|
* - Dev DB seeded with planarchy.dev seed users
|
|
*/
|
|
import { defineConfig, devices } from "@playwright/test";
|
|
import * as path from "path";
|
|
|
|
export const STORAGE_STATE = {
|
|
admin: path.join(__dirname, "e2e/dev-system/.auth/admin.json"),
|
|
manager: path.join(__dirname, "e2e/dev-system/.auth/manager.json"),
|
|
viewer: path.join(__dirname, "e2e/dev-system/.auth/viewer.json"),
|
|
};
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e/dev-system",
|
|
globalSetup: "./e2e/dev-system/global-setup.ts",
|
|
fullyParallel: false,
|
|
forbidOnly: !!process.env["CI"],
|
|
retries: 0,
|
|
workers: 1,
|
|
reporter: "list",
|
|
use: {
|
|
baseURL: "http://localhost:3100",
|
|
trace: "on-first-retry",
|
|
screenshot: "only-on-failure",
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
// No webServer block — the dev server must already be running
|
|
});
|