@forestrie/mandate-ui-e2e-kit
v0.2.3
Published
Reusable Playwright fixtures and BFF mocks for mandate UI e2e (ARC-0024 Layer 1)
Readme
@forestrie/mandate-ui-e2e-kit
Reusable Playwright fixtures and coordinator BFF mocks for mandate UI browser e2e. Published for cross-repo consumers per devdocs ARC-0024 and ADR-0041.
Install
Published to public npmjs with SLSA provenance (FOR-361) — tokenless
install, no .npmrc scope mapping. The @forestrie scope maps to one
registry per consumer, and consumers such as forestrie/system-testing
install this kit alongside npmjs-only @forestrie/canopy-e2e-kit, so the kit
publishes to npmjs too.
pnpm add @forestrie/mandate-ui-e2e-kit @playwright/test
# Peer: coordinator types from mandate at a pinned commit
pnpm add "github:forestrie/mandate#<sha>&path:packages/libs/coordinator-types"Public API
installCoordinatorMocks(page, options?)— browser route mocks for BFF + authloginWithMockPrivy,loadPending— Privy OTP login helperssamplePendingEntry,samplePendingEntries,E2E_AUTH_LOG_ID, …test,expect— Playwright fixture withconsolePage+mocksoption
Build
pnpm --filter @forestrie/mandate-ui-e2e-kit build
pnpm --filter @forestrie/mandate-ui-e2e-kit testHermetic runner @mandate/ui-e2e depends on this package via workspace:*.
