test_zoomed_out_blocks_and_a_legend_show_the_lens¶
Tests › tests/test_wiki_web.py
What this test is for
Why it exists
OWNER MAP NOTES (2026-11-22): change impact → map showed the changed dots but nothing zoomed out, and there was no colour legend. Owner Q/A: a folded block is drawn as the active lens's status pie (sub-arcs in proportion), and a legend names each colour with its count. One category function (`cat`) serves the dots, the pies and the legend, so they cannot disagree.
Given
- —
When
web_html({"nodes": [], "blocks": [], "links": []})
Then
- ✓ WEB_JS contains "function cat(n)"
- ✓ WEB_JS contains "function pies()"
- ✓ WEB_JS contains "function legend()"
- ✓ web_html({"nodes": [], "blocks": [], "links": []}) contains "data-web-legend"
tests/test_wiki_web.py:230 · its file's page
What it checks (2)
assert ( "function cat(n)" in WEB_JS and "function pies()" in WEB_JS and "function legend()" in WEB_JS )not attributedassert "data-web-legend" in web_html({"nodes": [], "blocks": [], "links": []})observesweb_html
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
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-021 measured