Assert that the talk page on screen has, or has not, a topic (a section).
Examples
Then the talk page should have the topic "A question about this page"
Then the talk page should not have the topic "Sources"
And the talk page should have the topic "Layout"
Then the talk page should have the topic "Thanks"
And the talk page should not have the topic "A second question"
Pattern
Then(/^the talk page should( not)* have the topic "([^"]*)"$/, …)
Part of @webship-js/mediawiki-steps (github.com/webship/mediawiki-steps), a step pack for Webship-js 2.0.x.