Skip to content

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.

  • 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”
Terminal window
shasum -a 256 ~/Downloads/fe-pack-e.zip
unzip -q -o ~/Downloads/fe-pack-e.zip -d ~/opleet-v2/packs
ls ~/opleet-v2/packs/fe-pack-e
Terminal window
git switch main && git pull
git switch -c web/playwright
Terminal window
pnpm --filter web add -D --save-exact @playwright/test@1.64.1
grep '"@playwright/test"' apps/web/package.json

4 · 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.

Terminal window
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 --short

5 · Unit tests, typecheck, lint and the rule check

Section titled “5 · Unit tests, typecheck, lint and the rule check”
Terminal window
pnpm --filter web test
pnpm --filter web typecheck
pnpm lint
pnpm docs:rules
Terminal window
git add -A apps/web apps/docs pnpm-lock.yaml
git commit -m "test(web): playwright smoke specs and the per-role menu check (d19)"
  • 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.
Terminal window
ls apps/web/e2e
grep -c 'Status:\*\* built' apps/docs/src/content/docs/system/rules/app-shell.md

Expect: app-shell.spec.ts, roles.spec.ts, session.spec.ts and support.ts; then 6. The specs run in FE-M0-24.

  • 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.json and 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:rules says a built rule has no test: the specs weren't copied. Run block 4 again.
Terminal window
git switch main
git branch -D web/playwright

Before 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.