Assert the sort order the product list says it uses.
Examples
Then the product list should be sorted by "Name, A to Z"
Then the product list should be sorted by "Relevance"
And the product list should be sorted by "Price, low to high"
Then the product list should be sorted by "Price, high to low"
Then the product list should be sorted by "Name, Z to A"
Pattern
Then(/^the product list should be sorted by "([^"]*)"$/, …)
Part of @webship-js/prestashop-steps (github.com/webship/prestashop-steps), a step pack for Webship-js 2.0.x.