The open user has a role (its "Role mapping" tab, opened by the step when it is not on screen).
Examples
Then the user should have the role "editor"
Then the user should have the role "default-roles-webship"
And the user should have the role "editor"
Then the user should not have the role "editor"
But the user should not have the role "admin"
Pattern
Then(/^the user should( not)? have the role "([^"]*)"$/, …)
Part of @webship-js/keycloak-steps (github.com/webship/keycloak-steps), a step pack for Webship-js 2.0.x.