Then the "Syndicate" block of the "Sidebar" region should have a condition containing "Editor"

Assert a block of a region of the layout shows (or does not show) a visibility condition in the editor: the "Conditions" list under the block ("User has the role Editor"). The condition only needs to contain the text.

Examples

Then the "Syndicate" block of the "Sidebar" region should have a condition containing "Editor"
Then the "Syndicate" block of the "Sidebar" region should not have a condition containing "Administrator"
And the "Search form" block of the "Header" region should not have a condition containing "role"
Then the "Syndicate" block of the "Footer" region should have a condition containing "User has the role Editor"
And the "Primary navigation" block of the "Header" region should not have a condition containing "Home page"

Pattern

Then(/^the "([^"]*)" block of the "([^"]*)" region should( not)* have a condition containing "([^"]*)"$/, …)

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