When I submit the contact form with subject "Question" and message "Hello there"

Fill and submit the contact form on screen (core's Contact module; open it first with "I am on the contact page"). A visitor's submission also needs a name and an email address: when those fields are present they are filled from the anonymous entry of the users registry (worldParameters.users.anonymous, keys name and email), falling back to "Webship QA" / "qa@example.com". On a site without the Contact module or without a contact form the step says so.

Examples

When I submit the contact form with subject "Question" and message "Hello there"
And we submit the contact form with subject "Support" and message "Need help"
When submit the contact form with subject "Feedback" and message "Great site"
And I submit the contact form with subject "Bug report" and message "Found an issue"
When we submit the contact form with subject "General" and message "Just saying hi"

Pattern

When(/^(I |we )*submit the contact form with subject "([^"]*)" and message "([^"]*)"$/, …)

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