Then the product list should be ordered by price ascending

Assert the order of the product list: by the price each product shows (the sale price of a product on sale), or by name. A range of prices counts as the store sorts it: by its lowest price going up, by its highest going down; a product that shows no price (a group) is left out.

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
And 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/woocommerce-steps (github.com/webship/woocommerce-steps), a step pack for Webship-js 2.0.x.