Skip to content

Instantly share code, notes, and snippets.

@underwhelmed
Created January 5, 2011 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save underwhelmed/765918 to your computer and use it in GitHub Desktop.
Save underwhelmed/765918 to your computer and use it in GitHub Desktop.
Feature: Contact Form
In order to provide feedback
As a user
I want to contact the website owners online
Scenario: Submitting with valid information
Given I am on the contact page
When I fill in "Name" with "Steve Perry"
And I fill in "Email" with "test@example.com"
And I fill in "Phone" with "555-555-5555"
And I fill in "Message" with "Hey there buddy"
And I press "Send"
Then I should see "Thanks for your feedback!"
And "myemail@example.com" should receive an email
When "myemail@example.com" opens the email with subject "Feedback from the website"
And I should see "Hey there buddy" in the email body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment