Then I should see the success message "has been successfully created"

Assert a message of a type shows (or does not show) with the given text: the flags in the top right corner ("SCRUM-5 has been updated.") and the messages inside a page or a dialog. The types are success, error, warning and info.

Examples

Then I should see the success message "has been successfully created"
Then I should see the success message "has been updated."
Then I should see the error message "There is 1 error in this form."
And we should not see the error message "does not exist"
Then I should see the info message "time zone"

Pattern

Then(/^(I |we )*should( not)* see the (success|error|warning|info) message "([^"]*)"$/, …)

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