Dismiss an alert with its close button, and wait until it has faded out and is removed from the page (hide then hidden, the alert gone).
Examples
When I dismiss the alert "Your profile was updated."
When I dismiss the alert "A new version of the guide is out."
When I dismiss the alert "Your subscription ends in three days."
When we dismiss the alert "Your profile was updated."
When I dismiss the alert "Your subscription ends"
Pattern
When(/^(?:I |we )?dismiss the alert "([^"]*)"$/, …)
Part of @webship-js/uikit-steps (github.com/webship/uikit-steps), a step pack for Webship-js 2.0.x.