Assert what the preview of the source editor shows (the rendered wikitext).
Examples
Then the preview should show "A page made in the source editor."
Then the preview should not show "Words to change."
And the preview should show "A section"
Then the preview should show "More words."
And the preview should not show "== A section =="
Pattern
Then(/^the preview should( not)* show "([^"]*)"$/, …)
Part of @webship-js/mediawiki-steps (github.com/webship/mediawiki-steps), a step pack for Webship-js 2.0.x.