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:
co-authored by
Claude Fable 5.2
parent
6e0ad26b2c
commit
8a01c72c2a
@@ -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 |
|
||||
|---|---|
|
||||
|
||||
Reference in New Issue
Block a user