Then I should see the page title "Log in"

Assert the page-title block's heading (h1.page-title) contains, or does not contain, a text. This is the *rendered* title core puts in the page body, which is not always the <title> element webship-js's own title steps read — admin pages in particular append the site name to one and not the other.

Examples

Then I should see the page title "Log in"
And we should see the page heading "Content"
Then should see the page title "Status report"
And I should not see the page heading "Access denied"
Then we should see the page title "Reset your password"

Pattern

Then(/^(I |we )*should( not)* see the page (?:title|heading) "([^"]*)?"$/, …)

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