When I order the courses by "Title a-z"

Order the course list by a choice of its select ("Newly published", "Title a-z", "Title z-a", "Price high to low", "Price low to high", "Popular").

Examples

When I order the courses by "Title a-z"
When I order the courses by "Title z-a"
When I order the courses by "Newly published"
And I order the courses by "Popular"
And I order the courses by "Price low to high"

Pattern

When(/^I order the courses by "([^"]*)"$/, …)

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