test_a_flow_page_carries_a_quick_view_per_function¶
Tests › tests/test_wiki_site.py
What this test is for
Why it exists
OWNER (round 5, P5.6): every entity gets a quick-view modal with the view strip. A flow page lists a trigger per function on it, each opening its template, and loads the views script; `load` is on the fixture's `load` flow.
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)quick = page.split('class="modal-list quick-views"', 1)[1].split("</ul>", 1)[0]template = re.search( r'<template id="modal-q-\d+" data-title="load \(src/data\.py\)">(.*?)</template>', page, re.S, )
When
- —
Then
- ✓ quick contains 'data-modal="q-'
- ✓ quick contains ">load</a>"
- ✓ template holds
- ✓ template.group(1) contains 'data-view-panel="tests"'
- ✓ page contains "_static/clew-views.js"
tests/test_wiki_site.py:1081 · its file's page
What it checks (3)
assert 'data-modal="q-' in quick and ">load</a>" in quicknot attributedassert template and 'data-view-panel="tests"' in template.group(1)not attributedassert "_static/clew-views.js" 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_a_flow_page_carries_a_quick_view_per_function→_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 |