Then the Canvas Library "Components" tab should list "Heading"

Assert the Library's "Components" or "Patterns" tab lists, or does not list, an item by its visible label, read from the panel on screen (what the site builder sees, not the API). Matches a whole line item exactly. Open the tab first.

Examples

Then the Canvas Library "Components" tab should list "Heading"
And the Canvas Library "Components" tab should list "Hero CTA"
Then the Canvas Library "Components" tab should not list "Legacy slider"
And the Canvas Library "Patterns" tab should list "Site header"
Then the Canvas Library "Patterns" tab should not list "Old footer"

Pattern

Then(/^the Canvas Library "(Patterns|Components)" tab should( not)* list "([^"]*)"$/, …)

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