test_a_gherkin_scenario_is_displayed_as_gherkin

Tests › tests/test_wiki_symbols.py

passed Passed in the packaged run.

What this test is for

Why it exists

OWNER 2026-11-15: "when we display gherkin, please display it properly" — Feature and Scenario headings, keyword-highlighted steps, tags as chips, its result.

Verifies REQ-DDB-WIKI-025 REQ-DDB-WIKI-026 REQ-DDB-WIKI-027

Given

  1. page = site["sym-tests-features-finish-feature.html"]
  2. sec = page[page.index('id="s-Finish_runs"') :]
→

When

  1. —
→

Then

  1. ✓ sec contains '<span class="gk">Feature:</span>'
  2. ✓ sec contains '<span class="gk">Scenario:</span>'
  3. ✓ sec contains '<span class="gk step">Then</span> it finishes'
  4. ✓ sec contains '<span class="gtag">@REQ-W-002</span>'
  5. ✓ sec contains "t-failed"

tests/test_wiki_symbols.py:160 · its file's page

What it checks (3)

  1. assert '<span class="gk">Feature:</span>' in sec and '<span class="gk">Scenario:</span>' in sec not attributed
  2. assert '<span class="gk step">Then</span> it finishes' in sec not attributed
  3. assert '<span class="gtag">@REQ-W-002</span>' in sec and "t-failed" in sec not attributed

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

requirementlinked byimplementers exercised
REQ-DDB-WIKI-025catalogunknown
REQ-DDB-WIKI-026catalogunknown
REQ-DDB-WIKI-027catalogunknown