Assert the newest line of the status history of the order: the status and, optionally, the employee who set it (empty when the shop set it).
Examples
Then the latest order history entry should be "Payment accepted"
Then the latest order history entry should be "Payment accepted" by "Shop Admin"
And the latest order history entry should be "Awaiting check payment"
Then the latest order history entry should be "Canceled" by "Shop Admin"
Then the latest order history entry should be "Awaiting bank wire payment" by ""
Pattern
Then(/^the latest order history entry should be "([^"]*)"(?: by "([^"]*)")?$/, …)
Part of @webship-js/prestashop-steps (github.com/webship/prestashop-steps), a step pack for Webship-js 2.0.x.