Dismiss an alert with its close button, and wait until it has faded out and is removed from the page (close then closed, the alert gone).
Examples
When I dismiss the alert "Holy guacamole!"
When I dismiss the alert "Nice, you triggered this alert message!"
When I dismiss the alert "Our office is closed on Friday."
When we dismiss the alert "You should check in on some of those fields below."
When I dismiss the alert "Our office is closed"
Pattern
When(/^(?:I |we )?dismiss the alert "([^"]*)"$/, …)
Part of @webship-js/bootstrap-steps (github.com/webship/bootstrap-steps), a step pack for Webship-js 2.0.x.