Then the page should be access restricted

Assert the page on screen is one the current session was refused: a 403 for the session, or core's "Access denied" page or the login form in place of the content. No navigation; use it after a navigation step.

Examples

Then the page should be access restricted
And the page should be access restricted
Then I should be denied access
And we should be denied access
Then page should be access restricted

Pattern

Then(/^(?:(?:I |we )*should be denied access|(?:the )?page should be access restricted)$/, …)

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