Then the account "editor" should have the "Editor" role

Assert an account has (or does not have) a role, read from the listing of user accounts. Needs an account that may manage user accounts.

Examples

Then the account "editor" should have the "Editor" role
Then the account "admin" should have the "Administrator" role
And the account "member" should not have the "Editor" role
Then the account "editor" should not have the "Administrator" role
And the account "member" should not have the "Administrator" role

Pattern

Then(/^the account "([^"]*)" 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.