FiCl Dev Blog한국어

[PR #286·289·290·291] Running Separately Tested Features in One Line on the Real Server

Work completed 2026-11-25 23:26 KST · Published 2026-12-03 23:24 KST · AI model used for the work Claude Opus 5.5

[PR #286·289·290·291] Running Separately Tested Features in One Line on the Real ServerSummary. In the customer app integration test, approval goes through the real admin request and comes last; the server flow test passed from the start; items 1–3 that differed from the head office design document were fixed; the admin web flow tests found a history screen gap and switched to logging in oncePR #286·289·290·291Separately Tested Features,Run in One Line on the Real ServerCustomer app → server → head office doc → admin webI chose to fix only 1–3Claude tested and checkedCodex tested and built1Customer app integrationApprove via the real admin requestso pinning and audit runThe approval test goes last2Server flow testOne flow as one testPassed from the startDoesn't lean on changing rules3Head office doc items 1–3Three easy ones of 7 differencesDenominator; memo when abnormalLast action, not a migration4Admin web flow testsFlow 2 found a history gapHit the 10-per-minute login limitShare one login (option 'A')Where the plan got it wrongThe plan misplaced which server task held the approval request.Claude wrote the pre-approval tests first and filled in the rest after it merged.KeyFeatures that pass alone still need to be joined in one line.Keep tests on the real path, and not right at a shared limit.FiCl Dev Blog · Post summary figure
[PR #286·289·290·291] Running Separately Tested Features in One Line on the Real ServerSummary. In the customer app integration test, approval goes through the real admin request and comes last; the server flow test passed from the start; items 1–3 that differed from the head office design document were fixed; the admin web flow tests found a history screen gap and switched to logging in oncePR #286·289·290·291Separately Tested Features,Run in One Line on the Real ServerCustomer app → server → head office doc → admin webI chose to fix only 1–3Claude tested and checkedCodex tested and built1Customer app integrationApprove via the real admin requestso pinning and audit runThe approval test goes last2Server flow testOne flow as one testPassed from the startDoesn't lean on changing rules3Head office doc items 1–3Three easy ones of 7 differencesDenominator; memo when abnormalLast action, not a migration4Admin web flow testsFlow 2 found a history gapHit the 10-per-minute login limitShare one login (option 'A')Where the plan got it wrongThe plan misplaced which server task held the approval request.Claude wrote the pre-approval tests first and filled in the rest after it merged.KeyFeatures that pass alone still need to be joined in one line.Keep tests on the real path, and not right at a shared limit.FiCl Dev Blog · Post summary figure

Detail 4 (quests, routines, head office review) was built in small tasks, and each task was tested on its own. These four PRs ran those separately built features in one line on the real server, and matched the code to a design document from head office that arrived in the meantime. In order: the customer app integration test (PR 286), the server flow test (PR 289), applying items 1–3 of head office’s design document (PR 290), and the admin web flow tests (PR 291).

The models differ by PR. All ran on my Windows computer.

PR What was done Who wrote it Result
286 Connect the customer app’s request functions to the real server Claude (tests) Four integration test files, 19 passing
289 One server flow as a single test Codex (test) Passed from the start, no implementation changes
290 Fix items 1–3 that differed from head office’s design document Claude (tests), Codex (implementation) New tests failed first, then passed
291 Four admin web flows (Playwright) Claude (tests), Codex (history screen) All 15 flow tests passed twice

PR 286: Connecting the customer app to the real server

What was done and why

To see whether the Detail 4 customer app (today’s tasks, doing a task) works against the real server rather than fake responses (server answers the tests decide in advance), Claude wrote an integration test (a test that calls the real server and database through the app’s request functions). There are three tests.

  1. Without start information, both the quest and routine tabs show “no start information.” Once the admin enters start information, the routine tab shows 4 routines, and only the quest tab shows “task list in preparation,” because no quest version has been approved.
  2. Task actions are tried in turn on a routine. After completing one, sending again with the same request number returns the same result and leaves one history row. Sending the same number with only the memo changed is refused with 409 (request conflict). An abnormal report becomes “under head office review” and can’t be undone. Skipping, undoing, and the progress count are checked too.
  3. When the admin approves the draft version through the real approval request, the quest tab of a module that started today shows the start-day quests, and completing one brings the progress count to 1.

One test-only request (8 lines) was added to the test server. It only inserts the quest draft version and 4 routines; it doesn’t approve anything. This request exists only in the test code, not in the real server.

Where the plan got it wrong

The implementation plan said this task could start “after server tasks 5 and 8 are merged.” But the “admin approval” in the test flow needed server task 6 (the admin request that approves a quest version). When the plan was written, the server task holding the approval request was misidentified. As the lead session decided, the parts before approval (tests 1 and 2) were written first, and the quest flow was left as a “todo test” (a placeholder for a test not yet written). After server task 6 (PR 285) was merged, it was filled in with the real approval request.

What was chosen, and what was dropped

Chosen Dropped alternative Why it was dropped
Approve through the real admin request Flip the database value to “approved” in the test-only request It skips the pinning and audit path, so the test no longer matches reality
Run the quest test on a module started today A module started 10 days ago, like the earlier test The test would depend on whether the draft has a quest for that day

How it was checked

PR 289: One server flow as a single test

What was done and why

This was the last task in the Detail 4 server plan. To see whether features tested one task at a time still work when joined in one line, the plan’s single flow was made into one test. The flow:

  1. After the quest draft is inserted, the customer sees “task list in preparation” before approval.
  2. Once the admin approves and a cycle is created from the planned start date, only quests appear; entering the start date adds 4 routines.
  3. Even with lookups and the scheduled run overlapping around midnight Korean time, tasks are created only once a day.
  4. Skipping three days creates all the quests for the days in between, but only today’s routines, and past routines are closed as “no record.”
  5. Saving readings and input records leaves tasks unchanged. A different body under the same request number is refused with 409 for both task actions and input records.
  6. Abnormal report → head office asks for a recheck (the customer sees head office’s answer but not its internal memo) → abnormal again → confirmed → progress count.
  7. After a new version is approved, running cycles still show the old text; after “move to the new version,” tasks already created stay as they are, and the new text appears from the next day.

What was chosen, and what was dropped

Chosen Dropped alternative Why it was dropped
One flow as a single test A test per step Each step builds on the state before it

How it was checked

PR 290: Fixing items 1–3 that differed from head office’s design document

What was done and why

That same day, head office sent its design document for quests and routines. A review session compared it with the current code and found 7 differences, and I decided to fix only the easy items 1–3 now.

  1. The progress count’s denominator: Skipped tasks stay in the denominator, and “n skipped” is shown separately. Only tasks skipped as “not applicable” are left out.
  2. A required memo for abnormal reports: Reporting abnormal must include a memo. Whitespace alone isn’t enough.
  3. Home screen wording: “All of today’s tasks are done” isn’t shown while skipped tasks or abnormal reports under head office review remain.

What was chosen, and what was dropped

Chosen Dropped alternative Why it was dropped
Read the skip reason from the last customer action Add a field to the task table It needs a migration
Check the memo on the server; the app sends it as typed Trim leading and trailing spaces before sending Memos have always been sent untouched, and it would affect the same-request-number body comparison

How it was checked

PR 291: Admin web flow tests

What was done and why

The Detail 4 admin web screens were run end to end against the real server (a server with a test database started) instead of fake responses. Four flows were written with Playwright (a test tool that clicks through a browser automatically).

  1. Approve the quest draft on the admin screen → cycle → the customer (via server request) reports a routine as “abnormal” → it shows in the admin review list → ask for a recheck → the customer reports abnormal again → confirm (answer and head office memo) → the customer’s response has the answer but not the head office memo.
  2. Renaming a routine leaves “routine saved” in the list and the history screen.
  3. A cycle without a planned end date shows a warning that the tasks tied to that date can’t be created.
  4. A head office quest created for today shows in the customer’s quest tab, and disappears when cancelled.

What was chosen, and what was dropped

Chosen Dropped alternative Why it was dropped
Log in as admin once and save that state (option A) Raise the test server’s login limit (option B) It touches a security safeguard and could affect other tests using the same test server
Log in as admin once and save that state (option A) Wait a minute between tests Slow and unreliable

How it was checked

Lessons