Then the message should be from "administrator"

Assert the private message on screen: who sent it (a handle of the users registry or a user name), or what it says (a part of its text).

Examples

Then the message should be from "administrator"
Then the message should read "Read the board rules first"
And the message should be from "moderator"
And the message should read "Webship test: a private message."
Then the message should be from "member"

Pattern

Then(/^the message should (?:be from|(read)) "([^"]*)"$/, …)

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