@starci/playwright-preset
v1.0.0
Published
The StarCi Playwright config: one Chromium project per ui-screen viewport (desktop 1440x900, tablet 768x1024, mobile 390x844), one worker, list reporter.
Readme
@starci/playwright-preset
The Playwright config of a front-end repository. Install it from the npm registry at the exact version in knowledge/hfs/canon-pins.yaml (see packages/README.md).
// playwright.config.ts
import { starciPlaywrightConfig } from "@starci/playwright-preset"
export default starciPlaywrightConfig({
baseURL: "http://127.0.0.1:5067",
webServer: { command: "npm run start", url: "http://127.0.0.1:5067", reuseExistingServer: true },
})- Three Chromium projects, one per ui-screen viewport:
desktop1440x900,tablet768x1024,mobile390x844. Desktop and mobile are the layout-treeDEFAULT_BREAKPOINTS(scripts/work/layout-tree.mjs) that interface.draw shots use; the spec fails if they drift. A flow runs once per viewport, so a screen is asserted at every size it was drawn at. - One worker, no parallelism, no retries,
forbidOnlyin CI, list reporter, light scheme, reduced motion, trace kept on failure. - Specs are
**/*.e2e-spec.tsunder./e2e. e2e is run by hand: no husky, no coverage, and the CI job isworkflow_dispatchonly. baseURLdefaults toE2E_BASE_URL, elsehttp://127.0.0.1:3000. The suite runs against a local stack or a double generated from the contract, never a step that skips for a missing environment.
