Assert the product at a position of the product list (first, second, third… or last), to check a sort order.
Examples
Then the first product of the product list should be "Brown bear cushion"
Then the second product of the product list should be "Brown bear notebook"
Then the last product of the product list should be "Pack Mug + Framed poster"
And the third product of the product list should be "Customizable mug"
Then the first product of the product list should be "Customizable mug"
Pattern
Then(/^the (first|second|third|fourth|fifth|last) product of the product list should be "([^"]*)"$/, …)
Part of @webship-js/prestashop-steps (github.com/webship/prestashop-steps), a step pack for Webship-js 2.0.x.