Assert that the work item on screen shows a comment holding the text, written by that account when one is named (the display name the site shows).
Examples
Then the work item should show the comment "Checked on the test site"
Then the work item should show the comment "Checked on the test site" by "member"
And the work item should show the comment "The script is in the project's repository" by "owner"
But the work item should show the comment "Looks right" by "owner"
Then the work item should show the comment "Done on a branch"
Pattern
Then(/^the work item should show the comment "([^"]*)"(?: by "([^"]*)")?$/, …)
Part of @webship-js/plane-steps (github.com/webship/plane-steps), a step pack for Webship-js 2.0.x.