Then I should have 1 unread message

Assert the counter of unread private messages at the top of the page, beside "Private messages".

Examples

Then I should have 1 unread message
Then I should have 0 unread messages
And we should have 2 unread messages
And I should have 1 unread message
Then we should have 0 unread messages

Pattern

Then(/^(?:I|we) should have (\d+) unread messages?$/, …)

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