Then I should be on an "article" page

Assert the current page shows content of the given type, or does not. The argument is the content type's machine name, not its label.

Core's themes print the type as the page-node-type-<type> body class and the node--type-<type> class (the "content type page" named selector, with {type} where the machine name goes). On a theme that prints neither, the site is asked: the item's edit form states its type in the data-drupal-selector Form API gives it, whatever the theme, for a session that may edit the item.

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