Submit a comment on the post that is open, through its comment form. A visitor gives a name and an email, which default to a test commenter; a logged-in user does not. The step fails with WordPress's own message when it refuses the comment (a duplicate, comments too fast, comments closed).
Examples
When I submit the comment "Thank you for the article."
When we submit the comment "A question about the page."
And I submit the comment "Good point." as "Visitor" with the email "subscriber@example.com"
When I submit the comment "Hello." as "Reader" with the email "info@webship.co"
And we submit the comment "Second thoughts."
Pattern
When(/^(I |we )*submit the comment "([^"]*)"(?: as "([^"]*)" with the email "([^"]*)")?$/, …)
Part of @webship-js/wordpress-steps (github.com/webship/wordpress-steps), a step pack for Webship-js 2.0.x.