When I sort the product list by "Sort by price: low to high"

Sort the product list by an option of its sorting menu, by the label the menu shows ("Sort by price: low to high", "Sort by latest", "Default sorting"); the step waits until the list is loaded in that order.

Examples

When I sort the product list by "Sort by price: low to high"
When we sort the product list by "Sort by price: high to low"
And I sort the product list by "Sort by latest"
When I sort the product list by "Default sorting"
And we sort the product list by "Sort by popularity"

Pattern

When(/^(I |we )*sort the product list by "([^"]*)"$/, …)

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