Then the Canvas pattern library should list the "Page heading" pattern

Assert the Canvas Library holds, or does not hold, a pattern by its name, through the authoring API the editor fills its Patterns tab from, so no page has to be open in the editor.

Examples

Then the Canvas pattern library should list the "Page heading" pattern
And the Canvas pattern library should list the "Campaign hero" pattern
Then the Canvas pattern library should not list the "Old banner" pattern
And the Canvas pattern library should not list the "Page heading" pattern
Then the Canvas pattern library should list the "Two columns" pattern

Pattern

Then(/^the Canvas pattern library should( not)* list the "([^"]*)" pattern$/, …)

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