Sort the product list by one of the choices of its "Sort By" select ("Position", "Product Name", "Price"). The page reloads with the new order.
Examples
When I sort the product list by "Price"
When I sort the product list by "Product Name"
And I sort the product list by "Position"
When we sort the product list by "Price"
When sort the product list by "Product Name"
Pattern
When(/^(I |we )*sort the product list by "([^"]*)"$/, …)
Part of @webship-js/magento-steps (github.com/webship/magento-steps), a step pack for Webship-js 2.0.x.