Assert the status badge the editor's top bar shows next to the page title: "Draft" for a page that was never published or was unpublished, and "Published" once it is live.
Examples
Then the Canvas editor should show the page as "Draft"
And the Canvas editor should show the page as "Published"
Then the Canvas editor should not show the page as "Published"
And the Canvas editor should not show the page as "Draft"
Then the Canvas editor should show the page as "Changed"
Pattern
Then(/^the Canvas editor should( not)* show the page as "([^"]*)"$/, …)
Part of @webship-js/drupal-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.