Assert a status message is, or is not, visible and, when a text is given, that it contains that text. Core shows one after every successful save, so this doubles as the "did that action take" assertion.
The message is found by what core states for it, whatever the theme: the aria-label="Status message" of core's message template or a role="status" element inside the data-drupal-messages region; then by the .messages--status class of core's themes. A project whose theme prints something else sets the "status message" named selector. With a text, a messages region that tells no kinds apart is searched as well.
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-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.