When I send the message "Hello, when is the next quiz?" to "teacher"

Send a message to an account of the users registry (or a person named by full name), the way a person does: the messaging drawer, its search, the person, the message typed in "Write a message...", then "Send message". The step waits until the conversation shows the message as sent.

Examples

When I send the message "Hello, when is the next quiz?" to "teacher"
When we send the message "The quiz opens on Monday." to "student"
And I send the message "Thank you." to "teacher"
Given I send the message "Hello, when is the next quiz?" to "teacher"
When we send the message "See you in class." to "student"

Pattern

When(/^(I |we )*send the message "([^"]*)" to "([^"]*)"$/, …)

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