An alert is shown with a text (a part of it, compared without regard to letter case, white space and the kind of quote marks), of a kind when one is named: primary, success, warning, danger (or error). With "not", no such alert is shown, once those being dismissed have gone. An alert the page adds after a click is waited for.
Examples
Then I should see the alert "A new version of the guide is out."
Then I should see a success alert "Your profile was updated."
Then I should see the warning alert "Your subscription ends in three days."
Then I should not see the success alert "Your profile was updated."
Then we should see an error alert "The payment was refused."
Pattern
Then(/^(?:I |we )?should( not)? see (?:the|an?) (?:(primary|success|danger|error|warning) )?alert "([^"]*)"$/, …)
Part of @webship-js/uikit-steps (github.com/webship/uikit-steps), a step pack for Webship-js 2.0.x.