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, secondary, success, danger (or error), warning, info, light, dark. 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 simple primary alert"
Then I should see a success alert "Well done!"
Then I should see the warning alert "Holy guacamole!"
Then I should not see the warning alert "Holy guacamole!"
Then we should see an error alert "A simple danger alert"
Pattern
Then(/^(?:I |we )?should( not)? see (?:the|an?) (?:(primary|secondary|success|danger|error|warning|info|light|dark) )?alert "([^"]*)"$/, …)
Part of @webship-js/bootstrap-steps (github.com/webship/bootstrap-steps), a step pack for Webship-js 2.0.x.