Assert a message of the page by its type and text: the green, red, yellow or blue box the back office and the shop show after an action. The text may be a part of the message.
Examples
Then I should see the success message "Successful update"
Then I should see the error message "The employee does not exist, or the password provided is incorrect."
Then I should not see the error message "Authentication failed."
Then we should see the success message "Successful creation"
And I should see the info message "You have not placed any orders."
Pattern
Then(/^(I |we )*should( not)* see the (success|error|warning|info) message "([^"]*)"$/, …)
Part of @webship-js/prestashop-steps (github.com/webship/prestashop-steps), a step pack for Webship-js 2.0.x.