Assert the list of layouts shows (or does not show) a visibility condition for a layout, by a text of the condition.
Examples
Then the "Dashboard" layout should have a condition containing "Access Dashboard"
Then the "Home page" layout should not have a condition containing "role"
And the "Default Layout" layout should not have a condition containing "permission"
Then the "Dashboard" layout should have a condition containing "permission"
And the "Home page" layout should not have a condition containing "Access Dashboard"
Pattern
Then(/^the "([^"]*)" layout 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.