Then I should have the notification "Welcome to Software Testing 101"

Assert that the notifications menu (the bell) of the account in the browser holds, or does not hold, a notification starting with a text; "new" asks for an unread one.

Examples

Then I should have the notification "Welcome to Software Testing 101"
Then I should have the new notification "Assignment submission confirmation - Testing diary"
And I should not have the notification "Teacher User has given feedback for assignment Testing diary"
Then we should have the notification "Welcome to Software Testing 101"
But we should not have the new notification "Welcome to Software Testing 101"

Pattern

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

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