Then I should have the message "Hello, when is the next quiz?" from "student"

Assert that the account in the browser has, or does not have, a message holding a text from an account of the users registry (or a person named by full name): the conversation with that person in the messaging drawer.

Examples

Then I should have the message "Hello, when is the next quiz?" from "student"
Then I should not have the message "Hello, when is the next quiz?" from "student"
And we should have the message "The quiz opens on Monday." from "teacher"
Then I should have the message "Thank you." from "student"
But we should not have the message "See you in class." from "teacher"

Pattern

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

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