Then I should be allowed to open "/admin/cms/pagecontent/"

Assert the current user may (or may not) open a path. "Allowed" is a 200 answer; "denied" is a 403, or a redirect to the login form for a visitor who is not logged in. The step opens the path, so the page changes.

Examples

Then I should be allowed to open "/admin/cms/pagecontent/"
Then I should not be allowed to open "/admin/auth/user/"
And we should not be allowed to open "/admin/auth/group/"
Then should be allowed to open "/admin/"
But I should not be allowed to open "/admin/sites/site/"

Pattern

Then(/^(I |we )*should( not)* be allowed to open "([^"]*)"$/, …)

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