Then I should see the notification "Invalid fields"

Assert Odoo shows, or does not show, a notification with the given text: the message that appears at the top right of the web client (.o_notification). An optional kind checks its colour: success, warning, danger or info.

Examples

Then I should see the notification "Invalid fields"
And I should see the success notification "saved"
Then we should see the danger notification "Invalid fields"
And I should not see the notification "Invalid fields"
Then we should see the warning notification "Warning"

Pattern

Then(/^(I |we )*should( not)* see the (?:(success|warning|danger|info) )?notification "([^"]*)"$/, …)

Part of @webship-js/odoo-steps (github.com/webship/odoo-steps), a step pack for Webship-js 2.0.x.