Then the site should have the role "Editor"

Assert the site has (or does not have) a role, read from the roles page.

Examples

Then the site should have the role "Editor"
Then the site should have the role "Administrator"
And the site should not have the role "Moderator"
Then the site should have the role "Authenticated"
And the site should not have the role "Publisher"

Pattern

Then(/^the site should( not)* have the role "([^"]*)"$/, …)

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