Files
PacketStation/tests/e2e/playwright.config.ts
T
spencermandClaude Fable 5.1 6b6db0230f
ci / frontend (push) Successful in 43s
ci / server (push) Successful in 11m6s
ci / image (push) Successful in 38s
ci / e2e (push) Successful in 3m55s
Phase 8: Project Management, find bar, presence and motion
The Project Management screen (/pm, view only) with Overview, Projects & units, Bottlenecks & aging, Hours vs target,
Quality & issues and Find jobs, the period picker, health per unit and per project, drill down, Excel (CSV) per table
and for all, and the PESCO production status report PDF with the controlled-copy stamp; every export logged as
"report exported". The find bar on every home screen: the full search set, the dropdowns, quick flags with Mine, the
flag kinds, Board and List with sorts, filters saved per browser; every filter applied by the server on the list and
the boards, with facets. Presence in packets with role, lock and revoke drop; the motion switch with reduced motion
honoured, card glides, glow and count-up; Back restores the scroll spot; sheet placement and the iPad layout pass. The
data book compared page by page with the old build and six layout differences fixed. Tests for the PM aggregates,
search, filters, presence and exports; Playwright scenarios for the PM screen, the find bar and presence at desktop and
iPad viewports. Docs updated; PLAN.md questions 38 to 42.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-10-18 15:08:34 -06:00

30 lines
1.1 KiB
TypeScript

import { defineConfig, devices } from "@playwright/test";
// Runs inside the playwright service of deploy/compose.ci.yaml.
// E2E_BASE_URL points at the app on the backend network. The scenarios share state
// (a registered device, a PIN), so they run in order on one worker.
export default defineConfig({
testDir: "./tests",
timeout: 60_000,
expect: { timeout: 10_000 },
retries: 0,
workers: 1,
fullyParallel: false,
forbidOnly: !!process.env.CI,
reporter: [["list"], ["html", { outputFolder: "playwright-report", open: "never" }]],
use: {
baseURL: process.env.E2E_BASE_URL ?? "http://ps-app:8000",
trace: "on-first-retry",
screenshot: "only-on-failure",
},
projects: [
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
// Phase 8: the PM, find bar and presence scenarios again at iPad landscape size, with touch.
{
name: "ipad",
testMatch: /(pm|findbar|presence)\.spec\.ts/,
use: { ...devices["Desktop Chrome"], viewport: { width: 1024, height: 768 }, isMobile: false, hasTouch: true },
},
],
});