test_a_gherkin_scenario_is_displayed_as_gherkin¶
Tests › tests/test_wiki_symbols.py
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.
Given
page = site["sym-tests-features-finish-feature.html"]sec = page[page.index('id="s-Finish_runs"') :]
When
- —
Then
- ✓ sec contains '<span class="gk">Feature:</span>'
- ✓ sec contains '<span class="gk">Scenario:</span>'
- ✓ sec contains '<span class="gk step">Then</span> it finishes'
- ✓ sec contains '<span class="gtag">@REQ-W-002</span>'
- ✓ sec contains "t-failed"
tests/test_wiki_symbols.py:160 · its file's page
What it checks (3)
assert '<span class="gk">Feature:</span>' in sec and '<span class="gk">Scenario:</span>' in secnot attributedassert '<span class="gk step">Then</span> it finishes' in secnot attributedassert '<span class="gtag">@REQ-W-002</span>' in sec and "t-failed" in secnot 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)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-025 | catalog | unknown |
| REQ-DDB-WIKI-026 | catalog | unknown |
| REQ-DDB-WIKI-027 | catalog | unknown |