test_tables_become_cards_and_diagrams_pan_on_a_narrow_screen¶
Tests › tests/test_wiki_site.py
What this test is for
Why it exists
P1b: responsive tables (a cell names its column) and pan/zoom diagram wrappers.
Verifies REQ-DDB-WIKI-011 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
- —
When
html = table(["Name", "Count"], [["a", "1"]], numeric=("Count",))css = site["_static/clew.css"]
Then
- ✓ html contains 'data-label="Name"'
- ✓ html contains 'data-label="Count"'
- ✓ css contains "@media(max-width:760px)"
- ✓ css contains "attr(data-label)"
- ✓ _flow_page(site) contains "data-pz"
tests/test_wiki_site.py:605 · its file's page
What it checks (3)
assert 'data-label="Name"' in html and 'data-label="Count"' in htmlobservestableviahtmlassert "@media(max-width:760px)" in css and "attr(data-label)" in cssnot attributedassert "data-pz" in _flow_page(site)observes_flow_page
Where the product reaches it
build_wiki→_build_site→flow_page→table(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.
Requirements it verifies (14)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-011 | 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 |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-012 measured