@forestrie/mandate-ui-e2e-kit 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -0
  3. package/package.json +47 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Robin Bryce
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @forestrie/mandate-ui-e2e-kit
2
+
3
+ Reusable Playwright fixtures and coordinator BFF mocks for mandate UI browser
4
+ e2e. Published for cross-repo consumers per
5
+ [devdocs ARC-0024](https://github.com/forestrie/devdocs/blob/main/arc/arc-0024-system-testing-architecture.md)
6
+ and [ADR-0041](https://github.com/forestrie/devdocs/blob/main/adr/adr-0041-e2e-kit-publishing.md).
7
+
8
+ ## Install
9
+
10
+ Published to **public npmjs** with SLSA provenance (FOR-361) — tokenless
11
+ install, no `.npmrc` scope mapping. The `@forestrie` scope maps to one
12
+ registry per consumer, and consumers such as `forestrie/system-testing`
13
+ install this kit alongside npmjs-only `@forestrie/canopy-e2e-kit`, so the kit
14
+ publishes to npmjs too.
15
+
16
+ ```bash
17
+ pnpm add @forestrie/mandate-ui-e2e-kit @playwright/test
18
+
19
+ # Peer: coordinator types from mandate at a pinned commit
20
+ pnpm add "github:forestrie/mandate#<sha>&path:packages/libs/coordinator-types"
21
+ ```
22
+
23
+ ## Public API
24
+
25
+ - `installCoordinatorMocks(page, options?)` — browser route mocks for BFF + auth
26
+ - `loginWithMockPrivy`, `loadPending` — Privy OTP login helpers
27
+ - `samplePendingEntry`, `samplePendingEntries`, `E2E_AUTH_LOG_ID`, …
28
+ - `test`, `expect` — Playwright fixture with `consolePage` + `mocks` option
29
+
30
+ ## Build
31
+
32
+ ```bash
33
+ pnpm --filter @forestrie/mandate-ui-e2e-kit build
34
+ pnpm --filter @forestrie/mandate-ui-e2e-kit test
35
+ ```
36
+
37
+ Hermetic runner `@mandate/ui-e2e` depends on this package via `workspace:*`.
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@forestrie/mandate-ui-e2e-kit",
3
+ "version": "0.2.0",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "description": "Reusable Playwright fixtures and BFF mocks for mandate UI e2e (ARC-0024 Layer 1)",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/forestrie/mandate.git",
10
+ "directory": "packages/tests/ui-e2e-kit"
11
+ },
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
+ }
17
+ },
18
+ "main": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
20
+ "files": [
21
+ "dist",
22
+ "README.md"
23
+ ],
24
+ "publishConfig": {
25
+ "registry": "https://registry.npmjs.org",
26
+ "access": "public"
27
+ },
28
+ "engines": {
29
+ "node": ">=22.0.0",
30
+ "pnpm": ">=9.0.0"
31
+ },
32
+ "peerDependencies": {
33
+ "@mandate/coordinator-types": ">=0.0.1",
34
+ "@playwright/test": "^1.48.0"
35
+ },
36
+ "devDependencies": {
37
+ "@playwright/test": "^1.48.0",
38
+ "typescript": "^5.9.2",
39
+ "vitest": "^4.1.3",
40
+ "@mandate/coordinator-types": "0.0.1"
41
+ },
42
+ "scripts": {
43
+ "build": "tsc -p tsconfig.build.json",
44
+ "check": "tsc -p tsconfig.build.json --noEmit",
45
+ "test": "vitest run"
46
+ }
47
+ }