test_the_step_table_and_the_diagram_stay_in_sync¶
Tests › tests/test_wiki_site.py
What this test is for
Why it exists
OWNER (round 5; Q/A 2026-11-20 "live sync" = diagram ↔ step table): each table row names its step, and the page script lights the row as the diagram plays or steps, and opens the step from a row. SPEC CHANGED (owner review 2026-11-22, W-7): the row is NO LONGER scrolled into view — on the dossier flow that scrolled the page and hid the diagram it was following.
Verifies REQ-DDB-WIKI-011 REQ-DDB-WIKI-012 REQ-DDB-WIKI-013 REQ-DDB-WIKI-014 REQ-DDB-WIKI-015 REQ-DDB-WIKI-018 REQ-DDB-WIKI-020 REQ-DDB-WIKI-021 REQ-DDB-WIKI-022 REQ-DDB-WIKI-023 REQ-DDB-WIKI-025 REQ-DDB-WIKI-031 REQ-DDB-WIKI-044 REQ-DDB-WIKI-050 REQ-DDB-WIKI-052
Given
page = _flow_page(site)table = page.split('<table class="clew steps"', 1)[1].split("</table>", 1)[0]for needle in ("animationstart", "tr[data-step]"): assert needle in page, needle
When
- —
Then
- ✓ re.findall(r'<tr data-step="(\d+)"', table)[:2] equals ["0", "1"]
- ✓ page does not contain "scrollIntoView"
tests/test_wiki_site.py:1110 · its file's page
What it checks (3)
assert re.findall(r'<tr data-step="(\d+)"', table)[:2] == ["0", "1"]not attributedassert needle in page, needleobserves_flow_pageviapageassert "scrollIntoView" not in pageobserves_flow_pageviapage
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
test_the_step_table_and_the_diagram_stay_in_sync→_flow_pageWhat 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.
Requirements it verifies (15)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-011 | catalog | unknown |
| REQ-DDB-WIKI-012 | catalog | unknown |
| REQ-DDB-WIKI-013 | catalog | unknown |
| REQ-DDB-WIKI-014 | catalog | unknown |
| REQ-DDB-WIKI-015 | catalog | unknown |
| REQ-DDB-WIKI-018 | catalog | unknown |
| REQ-DDB-WIKI-020 | catalog | unknown |
| REQ-DDB-WIKI-021 | catalog | unknown |
| REQ-DDB-WIKI-022 | catalog | unknown |
| REQ-DDB-WIKI-023 | catalog | unknown |
| REQ-DDB-WIKI-025 | catalog | unknown |
| REQ-DDB-WIKI-031 | catalog | unknown |
| REQ-DDB-WIKI-044 | catalog | unknown |
| REQ-DDB-WIKI-050 | catalog | unknown |
| REQ-DDB-WIKI-052 | catalog | unknown |