Skip to content

Adds a drafts shelf to the library loan fixture - #175

Merged
johnnyt merged 1 commit into
mainfrom
se-8lxc-plan-drafts-shelf-test
Sep 30, 2026
Merged

johnnyt merged 1 commit into
mainfrom
se-8lxc-plan-drafts-shelf-test

Conversation

@johnnyt

@johnnyt johnnyt commented Sep 30, 2026

Copy link
Copy Markdown
Member

What

No library-world fixture carried a drafts shelf, so no Plan page test proved that a tray reaches the description store; the only fixture with a shelf is a card-processing one, outside the example domains new work uses.

  • priv/fixtures/library_loan.json gains a drafts shelf as the last child of its root: a second overdue notice (core.send of loan.overdue) parked for later, which never runs and is not compiled.
  • plan_description_live_test.exs: the store test's @kinds now includes tray, so the two library fixtures between them must draw one; the facts test checks the tray's words ("Kept to one side: the steps here are not part of the flow") and the parked step's place ("kept to one side in Drafts").
  • view_model_pin_test.exs: the loan's pinned outline counts the two new rows, the shelf as a step at the root and the parked step as a tray, with a dated comment.

Provenance

  • The fixture lives in priv/fixtures/, which the planned file list did not name; the bead's acceptance asks for a library-world fixture with a shelf, so the fixture edit is forced. The pin-test update is forced by it: that test pins every fixture's outline.
  • The bead calls the fixture list @kinds; in the test the fixture list is @library and @kinds is the list of element kinds the two fixtures must draw between them. tray is added to @kinds.

Checks

  • Sabotage, each run and reverted from a copy: the fixture restored to the main branch's version (no shelf), and the shelf's type changed to core.sequence, each turned the store test red on "no tray on the page" and the facts test red on the tray's words. The notes sit above the tests.
  • Full mix quality green on the committed tree: format, compile, credo, dialyzer, deps, and the full suite with coverage.

In-turn review

I re-read the diff against the bead's acceptance: a library-world fixture carries a drafts shelf and a Plan page test asserts its tray kind is described. The shelf sits directly in the root's body, the one place a shelf is allowed, and the loan still carries one shelf. The parked step reuses an event the loan already sends, so the fixture declares no new event and stays in the library world. I ran the full suite before touching the pin: the pinned outline count was the only other test the fixture change moved, and it now counts the new rows.

No library-world fixture had a drafts shelf, so no Plan page test
proved a tray reaches the description store. The loan now parks a
second overdue notice on a shelf at its root, the store test counts
tray among the kinds the two library fixtures draw, and the facts test
checks the tray's and the parked step's words. The outline pin counts
the two new rows.

Refs: se-8lxc
@johnnyt
johnnyt force-pushed the se-8lxc-plan-drafts-shelf-test branch from 503f4a1 to 0a304c8 Compare September 30, 2026 10:59
@johnnyt
johnnyt merged commit cd47db5 into main Sep 30, 2026
3 checks passed
@johnnyt
johnnyt deleted the se-8lxc-plan-drafts-shelf-test branch September 30, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant