Assert that the notifications menu lists a notification that says a text (a part of it: who, what, the title it is about), or lists none that does.
Examples
Then the notifications menu should list "Private Message from moderator"
Then the notifications menu should list "Webship test message"
And the notifications menu should not list "Webship test message"
And the notifications menu should list "Post approval"
Then the notifications menu should list "Quoted by moderator"
Pattern
Then(/^the notifications menu should (not )?list "([^"]*)"$/, …)
Part of @webship-js/phpbb-steps (github.com/webship/phpbb-steps), a step pack for Webship-js 2.0.x.