Then I should see the page title "Log in"

Assert the title of the page contains, or does not contain, a text: the heading of the main region (the "page title" named selector: an <h1>, h1.page-title on core's themes). This is the title core renders in the page body, which is not the <title> element webship-js's own title steps read. On a theme that prints no heading at all, the page's own part of the document title (the text before " | <site name>") is read instead.

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-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.