test_one_modal_component_serves_every_page

Tests › tests/test_wiki_site.py

passed Passed in the packaged run.

What this test is for

Why it exists

ONE COMPONENT: every content page carries the same labelled `<dialog>` and the script that drives it; the flow page's step dialog is that component, not a second one.

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

  1. for name, text in site.items(): if name.endswith(".html") and name not in ("search.html", "genindex.html"): assert '<dialog id="clew-modal"' in text, name assert 'aria-labelledby="clew-modal-title"' in text, name assert "_static/clew.js" in text, name
  2. page = _flow_page(site)
→

When

  1. —
→

Then

  1. ✓ page does not contain "dialog.flow-step"
  2. ✓ page does not contain '<dialog class="flow-step"'
  3. ✓ page.count("<dialog") equals 1

tests/test_wiki_site.py:541 · its file's page

What it checks (5)

  1. assert '<dialog id="clew-modal"' in text, name not attributed
  2. assert 'aria-labelledby="clew-modal-title"' in text, name not attributed
  3. assert "_static/clew.js" in text, name not attributed
  4. assert "dialog.flow-step" not in page and '<dialog class="flow-step"' not in page observes _flow_page via page
  5. assert page.count("<dialog") == 1 observes _flow_page via page

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_one_modal_component_serves_every_page→_flow_page

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 (15)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-011catalogunknown
REQ-DDB-WIKI-012catalogunknown
REQ-DDB-WIKI-013catalogunknown
REQ-DDB-WIKI-014catalogunknown
REQ-DDB-WIKI-015catalogunknown
REQ-DDB-WIKI-018catalogunknown
REQ-DDB-WIKI-020catalogunknown
REQ-DDB-WIKI-021catalogunknown
REQ-DDB-WIKI-022catalogunknown
REQ-DDB-WIKI-023catalogunknown
REQ-DDB-WIKI-025catalogunknown
REQ-DDB-WIKI-031catalogunknown
REQ-DDB-WIKI-044catalogunknown
REQ-DDB-WIKI-050catalogunknown
REQ-DDB-WIKI-052catalogunknown