Assert a notification: the message a save shows at the corner of the page for a few seconds ("Profile updated.", "Password updated."). Notifications shown since the last action are remembered, so the step reads one even a moment after it faded. The type is success, error, warning or info.
Examples
Then I should see the notification "Profile updated."
Then I should see the success notification "Password updated."
And we should see the notification "Password updated."
Then I should see the error notification "Something went wrong."
And I should see the success notification "Profile updated."
Pattern
Then(/^(I |we )*should see the (?:(success|error|warning|info) )?notification "([^"]*)"$/, …)
Part of @webship-js/laravel-steps (github.com/webship/laravel-steps), a step pack for Webship-js 2.0.x.