Then the toolbar should have the "Page" menu

Assert the toolbar has (or does not have) a menu. The "Page", "Version" and "Language" menus only show on a CMS page; "Version" matches the menu whatever its number and state.

Examples

Then the toolbar should have the "Page" menu
Then the CMS toolbar should not have the "Page" menu
And the toolbar should have the "Language" menu
Then the django CMS toolbar should have the "Version" menu
But the toolbar should not have the "Version" menu

Pattern

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

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