Assert that the browser shows the page of the scenario's course, or does not (an account without access is sent elsewhere).
Examples
Then I should be on the course page
Then I should not be on the course page
And we should be on the course page
Then we should not be on the course page
But I should be on the course page
Pattern
Then(/^(I |we )*should( not)* be on the course page$/, …)
Part of @webship-js/moodle-steps (github.com/webship/moodle-steps), a step pack for Webship-js 2.0.x.