Then the last post should quote "What is in your oven this weekend?"

Assert that a post of the topic on screen quotes a text (a part of it), and with an author, whom it quotes.

Examples

Then the last post should quote "What is in your oven this weekend?"
Then the last post should quote "What is in your oven this weekend?" by "member"
And post 2 should quote "A tray of cinnamon rolls here." by "moderator"
Then the last post should quote "Webship test"
And post 3 should quote "sourdough" by "member"

Pattern

Then(/^(?:post (\d+)|the last post) should quote "([^"]*)"(?: by "([^"]*)")?$/, …)

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