Then the content item should be published

Assert the content item being viewed is published or unpublished, via the node--unpublished class core's node template adds to an unpublished node. Under an editorial workflow a new item usually starts as an unpublished draft, which is what the "unpublished" form checks.

Examples

Then the content item should be published
And the content item should be unpublished
Then the content should be unpublished
And the content item should not be unpublished
Then the content should not be published

Pattern

Then(/^(?:the )?content(?: item)? should( not)* be (published|unpublished)$/, …)

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