Close the messages of a type with their "Dismiss" link and wait until they are gone.
Examples
When I dismiss the status message
When I dismiss the error messages
And I dismiss the warning message
When we dismiss the status messages
And dismiss the info message
Pattern
When(/^(I |we )*dismiss the (status|info|warning|error) messages?$/, …)
Part of @webship-js/backdrop-cms-steps (github.com/webship/backdrop-cms-steps), a step pack for Webship-js 2.0.x.