test_many_requirement_pills_fold_and_each_links_its_page¶
Tests › tests/test_wiki_reqwhat.py
What this test is for
Why it exists
UX review D-10: walls of REQ pills. Three or fewer inline; more fold under "N requirements"; each pill opens the requirement's own page, not an anchor on the index.
Given
- —
When
few = _badges(["REQ-A-002", "REQ-A-001"])many = _badges([f"REQ-A-00{i}" for i in range(1, 6)])
Then
- ✓ few contains '<a class="req-badge" href="req-REQ-A-001.html">REQ-A-001</a>'
- ✓ few does not contain "<details"
- ✓ many.startswith('<details class="fold"><summary>5 requirements</summary>') holds
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
Build this wiki from the index · 2 of 400 steps
… 224 earlier steps
… 170 later steps
tests/test_wiki_reqwhat.py:104 · its file's page
What it checks (2)
assert ( '<a class="req-badge" href="req-REQ-A-001.html">REQ-A-001</a>' in few and "<details" not in few )observes_badgesviafewassert many.startswith('<details class="fold"><summary>5 requirements</summary>')observes_badgesviamany
Where the product reaches it
build_wiki→_build_site→flow_page→_badges(flow)
Call flow
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-022 measured