Then the comment "Thank you for the article." should be awaiting moderation

Assert a comment on the post that is open is shown as awaiting moderation: WordPress returns the sender to the post with a preview and the note "Your comment is awaiting moderation."

Examples

Then the comment "Thank you for the article." should be awaiting moderation
And the comment "A question about the page." should be awaiting moderation
Then the comment "Published right away." should not be awaiting moderation
And the comment "Good point." should not be awaiting moderation
Then the comment "Held back." should be awaiting moderation

Pattern

Then(/^the comment "([^"]*)" should( not)* be awaiting moderation$/, …)

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