Open a course by its full name (or its short name), the way a person finds it: the course search of the site, then the course page. An account that is not enrolled lands where the site sends it (the enrolment options of the course). The course is the scenario's course from then on: the steps that say "the course" act on it.
Examples
When I open the course "Software Testing 101"
When we open the course "Software Testing 101"
Given I open the course "TEST101"
And I open the course "Software Testing 101"
When we open the course "TEST101"
Pattern
When(/^(I |we )*open the course "([^"]*)"$/, …)
Part of @webship-js/moodle-steps (github.com/webship/moodle-steps), a step pack for Webship-js 2.0.x.