Then the toolbar should have the "Publish" button

Assert the toolbar has (or does not have) a button. The buttons tell the state of the page: a draft in edit mode offers "Publish", a published page offers "New Draft".

Examples

Then the toolbar should have the "Publish" button
Then the toolbar should not have the "Publish" button
And the CMS toolbar should have the "New Draft" button
Then the django CMS toolbar should have the "Create" button
But the toolbar should not have the "New Draft" button

Pattern

Then(/^the (?:(?:django )?CMS )?toolbar should( not)* have the "([^"]*)" button$/, …)

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