Then I should be on an "article" page

Assert the current page renders content of the given type — or does not — via the page-node-type-<type> body class. The argument is the content type's machine name, not its label.

Examples

Then I should be on an "article" page
And we should be on a "page" content page
Then should be on a "basic_page" page
And I should be on an "event" page
Then we should not be on an "article" page

Pattern

Then(/^(I |we )*should( not)* be on an? "([^"]*)?"(?: content)? page$/, …)

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