Then I should see a status message

Assert a status message (.messages--status) is, or is not, visible, and — when a text is given — that it contains that text. This is the markup core renders for every successful save, so it doubles as the "did that action actually take" assertion.

Examples

Then I should see a status message
And we should see a success message
Then should see a confirmation message
And I should see the status message "The configuration options have been saved."
Then we should not see a status message

Pattern

Then(/^(I |we )*should( not)* see (?:a|the) (?:status|success|confirmation) message(?: "([^"]*)")?$/, …)

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