Then I should see a success message

Assert a message of a given type is (or is not) on the page, whatever its text.

Examples

Then I should see a success message
Then I should not see an error message
And I should see an error message
Then we should not see a warning message
Then should see a notice message

Pattern

Then(/^(I |we )*should( not)* see (?:a|an) (success|error|warning|notice) message$/, …)

Part of @webship-js/magento-steps (github.com/webship/magento-steps), a step pack for Webship-js 2.0.x.