When I sort the product list by "Name, A to Z"

Sort the product list by one of the orders of its "Sort by" menu.

Examples

When I sort the product list by "Name, A to Z"
When I sort the product list by "Price, low to high"
When we sort the product list by "Price, high to low"
And I sort the product list by "Name, Z to A"
When I sort the product list by "Relevance"

Pattern

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

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