Documentation
¶
Overview ¶
Command pagesfix is the Pages screens spec's fixture (e2e/tests/pages-declutter.spec.ts): an owner's pages, written through the real store (internal/pages: row-level security, versions, links and responses as in production), whose counts are pairwise distinct so each badge the list draws can only come from one place.
DATABASE_URL=…_e2e MUSTER_CONNECTOR_ENCRYPTION_KEY=<base64 32 bytes> \ go run ./e2e/pagesfix seed <owner> prints the pages as JSON DATABASE_URL=…_e2e go run ./e2e/pagesfix clear <owner>
The pages (all synthetic), each made by a mirrored session ("Release helper" on host "laptop"), times set back so each reads as a real age:
- "Quarter plan": 4 versions, no link, no reply;
- "Launch notes": 1 version, its live share link, 3 replies;
- "Venue survey": 1 version, 2 links waiting for the owner, 1 live one-off link, 2 revoked and 1 declined;
- "Budget review": 2 versions, its live share link, 1 reply, 1 waiting;
- a page whose long title must wrap whole words, ending in one unbroken string longer than a phone is wide: 1 version, nothing else.
seed first deletes every page of the owner's (this e2e database's only).
🔴 IT REFUSES ANY DATABASE WHOSE NAME DOES NOT END IN "_e2e" (e2edb.Check).