Assert Odoo shows, or does not show, an access error: the "Access Error" dialog (.o_error_dialog) the web client opens when the server refuses an operation for the current user. An optional text is looked for in the message.
Examples
Then I should see an access error
And I should not see an access error
Then we should see an access error
And I should see an access error "You are not allowed to access"
Then we should see an access error "Sales Order"
Pattern
Then(/^(I |we )*should( not)* see an access error(?: "([^"]*)")?$/, …)
Part of @webship-js/odoo-steps (github.com/webship/odoo-steps), a step pack for Webship-js 2.0.x.