FE-M0-23 · Playwright in apps/web: the smoke specs and the per-role menu check
ID FE-M0-23 · Level L0 · Run order row 29 · Why D19, D27, D37 · Issue #19
apps/web has @playwright/test 1.64.1, a pnpm --filter web e2e script, and a Playwright config that starts the built app itself on port 3100 and writes its HTML report to apps/web/playwright-report, the names TL-M0-19's CI job expects. The specs in apps/web/e2e prove the six app shell rules and R-ACC-48 on the local stack with the E2E logins, 27 tests in all; every title starts with the rule's ID. The same commit sets R-APP-01 to R-APP-06 from planned to built and changes nothing else in apps/docs. Committed on the branch web/playwright.
Before
Section titled “Before”- Pack B2 is merged (#196): the R-ACC-48 spec needs its proxy.ts.
- The six rules are on main (#188, merged in #192).
- fe-pack-e.zip, sent in the FE chat, is in ~/Downloads.
- You are in ~/opleet-v2/opleet and git status --short prints nothing.
- Pack F (#173) is not merged yet. Its FE-M0-17 also adds a package to apps/web/package.json, so whichever of the two runs second needs its zip rebuilt by FE. Tell FE if pack F has merged.
1 · Check the zip, then unzip it next to the repository
Section titled “1 · Check the zip, then unzip it next to the repository”shasum -a 256 ~/Downloads/fe-pack-e.zipunzip -q -o ~/Downloads/fe-pack-e.zip -d ~/opleet-v2/packsls ~/opleet-v2/packs/fe-pack-e2 · A branch for pack E
Section titled “2 · A branch for pack E”git switch main && git pullgit switch -c web/playwright3 · Playwright, pinned
Section titled “3 · Playwright, pinned”pnpm --filter web add -D --save-exact @playwright/test@1.64.1grep '"@playwright/test"' apps/web/package.json4 · Check the files this step replaces, then copy its files
Section titled “4 · Check the files this step replaces, then copy its files”The lines end in &&, so the block stops at the first command that fails. package.json is checked as block 3 left it.
shasum -a 256 -c ~/opleet-v2/packs/fe-pack-e/FE-M0-23/BASE.sha256 && cp -R ~/opleet-v2/packs/fe-pack-e/FE-M0-23/apps . && git status --short5 · Unit tests, typecheck, lint and the rule check
Section titled “5 · Unit tests, typecheck, lint and the rule check”pnpm --filter web testpnpm --filter web typecheckpnpm lintpnpm docs:rules6 · Commit
Section titled “6 · Commit”git add -A apps/web apps/docs pnpm-lock.yamlgit commit -m "test(web): playwright smoke specs and the per-role menu check (d19)"Expect
Section titled “Expect”- Block 1: bd9b7948fd9a0496a81bb10dd7537eef4b4c0ca69cebaac64d31bff550e54746, then FE-M0-23 README.txt.
- Block 2: “Switched to a new branch 'web/playwright'”.
- Block 3: pnpm ends with “Done”, and grep prints
"@playwright/test": "1.64.1",. - Block 4: three lines ending in “: OK”, for apps/web/.gitignore, apps/web/package.json and the app shell rules page; then M for apps/docs/src/content/docs/system/rules/app-shell.md, apps/web/.gitignore, apps/web/package.json and pnpm-lock.yaml, and ?? for apps/web/e2e/ and apps/web/playwright.config.ts.
- Block 5: “ℹ tests 41” and “ℹ pass 41” (the unit tests, unchanged); typecheck with the Keys line and no errors; “No fixes applied.”; “Rules: 373 (111 planned, 256 built, 6 retired). Rules cited by tests: 261.”
- Block 6: the commit line with 9 files changed.
ls apps/web/e2egrep -c 'Status:\*\* built' apps/docs/src/content/docs/system/rules/app-shell.mdExpect: app-shell.spec.ts, roles.spec.ts, session.spec.ts and support.ts; then 6. The specs run in FE-M0-24.
If it fails
Section titled “If it fails”- Block 3 refuses the version for its age, or asks to allow a build script: paste the output and stop. 1.64.1 was published on 2026-10-14 and needs no build script; the browser comes in FE-M0-24.
- Block 4 prints “FAILED” for package.json: block 3 wrote something else, or pack F has merged. Nothing was copied. Paste
git diff apps/web/package.jsonand stop. - Block 4 prints “FAILED” for app-shell.md: the rules page changed on main since this pack was written. Paste the FAILED line and stop; FE rebuilds the zip.
pnpm docs:rulessays a built rule has no test: the specs weren't copied. Run block 4 again.
git switch maingit branch -D web/playwrightBefore anything is pushed. Block 3 changed package.json and pnpm-lock.yaml on the branch only.
Not run yet. Log each run as a comment on #19.