Assert that the session of the browser may, or may not, open a page of the app. Refused means: a visitor is sent to the login page, a signed-in account gets the access-denied answer (HTTP 403, on the app's error page or the default one). Allowed means neither. Management endpoints (/actuator/env) are pages like any other here.
Examples
Then I should not be allowed to open "/owners/new"
Then I should be allowed to open "/owners/find"
And we should not be allowed to open "/actuator/env"
Then I should be allowed to open "/owners/1/edit"
But we should not be allowed to open "/owners/1/pets/1/edit"
Pattern
Then(/^(I |we )*should( not)* be allowed to open "([^"]*)"$/, …)
Part of @webship-js/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.