Then I should see the notification "Record saved"

Assert the backend raised (or did not raise) a notification with the given text in its title or its message, for example "Record saved" or "Successfully cleared page cache". Notifications leave the screen after one to five seconds, so the steps keep a log of every notification of the session since the login: a notification counts even when it is gone by the time the step runs. An assertion uses a notification up, so a second "I should see the notification" needs a second notification.

Examples

Then I should see the notification "Record saved"
And I should see the notification "has been successfully saved"
Then we should see the notification "Successfully cleared page cache"
And I should not see the notification "Error"
Then should see the notification "Record saved"

Pattern

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

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