Then the Canvas "Pages" panel should list "Home"

Assert the open panel of the editor lists, or does not list, an entry by its visible text: a page in "Pages" ("Home"), a template in "Templates" ("Full content template", "Mercury theme"), a component in "Layers" ("Heading"). The whole text of an entry is matched. The panel is opened first when another one is showing.

Examples

Then the Canvas "Pages" panel should list "Home"
And the Canvas "Templates" panel should list "Full content template"
Then the Canvas "Layers" panel should list "Heading"
And the Canvas "Layers" panel should not list "Image"
Then the Canvas "Pages" panel should not list "Old landing"

Pattern

Then(/^the Canvas "(Layers|Code|Pages|Templates|Brand kit)" panel 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.