M1 review round 3: a built-site e2e for a late staff collection (both bundlers); docs follow

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 00:39:24 +01:00
co-authored by Claude Fable 5.2
parent 6e0ad26b2c
commit 8a01c72c2a
22 changed files with 216 additions and 32 deletions
+8
View File
@@ -21,6 +21,14 @@ Production check: `pnpm build && pnpm payload run e2e/create-test-admin.ts && AL
(Playwright starts the built site on port 3100 itself; another port: `E2E_BASE_URL=http://localhost:3200`, built with
the same `NEXT_PUBLIC_SERVER_URL`; a server you started yourself: `E2E_REUSE_SERVER=1`).
Access rules on a built site, both bundlers (a staff collection that a plugin listed after ipalKit adds — unit tests
run unminified code and cannot see what a bundle renames):
```bash
E2E_LATE_STAFF=1 pnpm build && pnpm payload run e2e/create-test-admin.ts && E2E_LATE_STAFF=1 ALLOW_LOCAL_MEDIA=1 pnpm exec playwright test late-staff
E2E_LATE_STAFF=1 pnpm exec next build --turbopack && pnpm payload run e2e/create-test-admin.ts && E2E_LATE_STAFF=1 ALLOW_LOCAL_MEDIA=1 pnpm exec playwright test late-staff
```
Without `E2E_LATE_STAFF=1` the fixture adds nothing and the spec is skipped.
## What is where
| Convention | Files |
|---|---|