Then I should see the unauthorized screen

Assert that the control panel answered with its "Unauthorized" screen, optionally with a message: what an account without the permission gets.

Examples

Then I should see the unauthorized screen
Then I should see the unauthorized screen with "User is not permitted to perform this action."
Then we should see the unauthorized screen
Then I should see the unauthorized screen with "not authorized to edit this element"
And we should see the unauthorized screen with "not authorized"

Pattern

Then(/^(I |we )*should see the unauthorized screen(?: with "([^"]*)")?$/, …)

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