Then the module heading should be "Congratulations"

Assert the heading of the module does (or does not) include a text. The heading is the h1 of the content frame, or the editable page title (typo3-backend-editable-page-title) the Page and List modules show for a selected page.

Examples

Then the module heading should be "Congratulations"
And the module heading should be "Edit Page"
Then the module heading should not be "Features"
And the module heading should be "TYPO3 Introduction"
Then the module heading should not be "Access denied"

Pattern

Then(/^the module heading should( not)* be "([^"]*)?"$/, …)

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