Then the page should have the section "Overview"

Assert that the page has, or has not, a section by its heading.

Examples

Then the page should have the section "Overview"
Then the page should not have the section "History"
And the page should have the section "Source editing"
Then the page should have the section "A question about this page"
And the page should not have the section "Removed section"

Pattern

Then(/^the page should( not)* have the section "([^"]*)"$/, …)

Part of @webship-js/mediawiki-steps (github.com/webship/mediawiki-steps), a step pack for Webship-js 2.0.x.