Then the box should list the conversation "Welcome to the club" with "Organizer Test"

Assert the box of messages on the page lists (or does not list) a conversation by its subject, and, when given, from or to whom, and whether it was unread when the inbox opened (the box reads its first conversation in its preview).

Examples

Then the box should list the conversation "Welcome to the club" with "Organizer Test"
And the box should list the unread conversation "Welcome to the club" with "organizer"
Then the box should not list the conversation "Webship test message"
And the box should list the conversation "Webship test message" with "member"
Then the box should list the conversation "Webship test message"

Pattern

Then(/^the box should( not)* list the (unread )?conversation "([^"]*)"(?: with "([^"]*)")?$/, …)

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