Assert a workflow has, or does not have, a state or a transition, by the labels its edit page shows (Configuration, Workflow, Workflows). Drupal CMS ships the "Basic" workflow with the states Draft, Published and Unpublished and the transitions Create new draft, Publish and Unpublish. Needs a user who may administer workflows.
Examples
Then the "Basic" workflow should have the "Draft" state
And the "Basic" workflow should have the "Published" state
Then the "Basic" workflow should have the "Publish" transition
And the "Basic" workflow should not have the "Archived" state
Then the "Basic" workflow should not have the "Archive" transition
Pattern
Then(/^the "([^"]*)" workflow should( not)* have the "([^"]*)" (state|transition)$/, …)
Part of @webship-js/drupal-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.