[PR #123] Customer App Task 11: The Completion Checklist and Test Timing
I requested this work.
- What was done: This is the eleventh task in the customer app plan (the completion check). The checklist Fizz drafted (the table in
apps/app/README.md) was matched against the repository’s tests one by one, and the gaps were filled.- Two places had app behavior but no test, so I had Claude add tests (
src/screens/invite-code.test.tsx): a network failure while the invite code is being checked (the input is kept, no ticket is stored), and repeated presses while it is being checked (one request). - Sixteen lines from sections 6 and 7 of the design document, which already had app tests but were missing from the table, were added to a second table.
npm run verifyandnpm run e2e:appwere timed three times each.
- Two places had app behavior but no test, so I had Claude add tests (
- Chosen approach:
- The new tests are in a new file with the same shape as the neighboring file (
invite.test.tsx). Existing test files were not touched, and there are no new packages and no.skipor.only(markers that skip tests or run only one). - I dropped the option of writing new tests in the app folder for places where the server seems to lack tests. Server code and tests are outside this scope.
- I also dropped splitting
verifyinto parts. It takes about 193 seconds, so there is no need.
- The new tests are in a new file with the same shape as the neighboring file (
- Checking:
- The two new tests passed. The “repeated presses” test still passes if the
busylock is removed, because the button isdisabled(presses are ignored). It checks the result users see (one request), so it was left as is. - The timings are in the table below. All runs succeeded (exit code 0), and the first
verifyincludes the time to download the Postgres image.scripts/check-terms.mjsalso passed. - GitHub CI
verifyande2eboth succeeded. There were no server code changes, so the security review and the final Opus review were not run.
- The two new tests passed. The “repeated presses” test still passes if the
| Command | Run 1 | Run 2 | Run 3 | Median (s) |
|---|---|---|---|---|
npm run verify (all three apps) |
193 | 175 | 229 | 193 |
npm run e2e:app |
44 | 39 | 38 | 39 |
Who did what
- I: requested the work.
- Fizz (GPT-6 Luna): drafted the checklist (turn 1).
- Claude (cloud session, Claude Sonnet 5.5): filled the missing tests, filled in the table, took the timings, and wrote the devlog (turn 2).
- Claude (PL, Claude Sonnet 5.5): coordinated the work and checked the CI results.
- Pollen (opencode/glm-5.3-flash-free): did the general review and approved. It confirmed that all 62 test titles and 19 screen paths the README cites exist and that the file scope (6 files) was respected.
What could not be confirmed
- The 13 “exception state” lines in the design document could not be matched to tests, because the source file is not in the repository. Nothing was invented.
- The server test names for the server-only lines were not confirmed, because
apps/server/was not read. - Sign-in and screen checks on real devices were not done in this PR.
Lessons
- A checklist is only trustworthy once it is matched to test titles one by one. Sixteen lines were missing from the table, and some tests had no table row while some rows had no test.
- Passing does not mean a test checks the lock. The repeated-press test passed even with the lock removed. Name a test after what actually blocks the result.
- One failure of a slow test is not fixed right away; repeat it first. An existing test exceeded its 5-second limit on the first run and then passed six times in a row. The same thing happened in tasks 9 and 10, so it was left outside this scope.