Assert the products on the current page of the list are ordered by price or by name.
Examples
Then the product list should be ordered by price ascending
Then the product list should be ordered by price descending
And the product list should be ordered by name ascending
Then the product list should be ordered by name descending
Then the product list should be ordered by price ascending
Pattern
Then(/^the product list should be ordered by (price|name) (ascending|descending)$/, …)
Part of @webship-js/magento-steps (github.com/webship/magento-steps), a step pack for Webship-js 2.0.x.