Then I should see a warning message

Assert a warning message (.messages--warning) is, or is not, visible — the middle severity core uses for "this worked, but you should know something", such as the notices the status report and the module install screens raise.

Examples

Then I should see a warning message
And we should see a warning
Then should see a warning message
And I should see the warning message "Update notifications are not enabled."
Then we should not see a warning message

Pattern

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

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