Skip to content

Instantly share code, notes, and snippets.

@aslakhellesoy
Forked from lsiden/cucumber example.txt
Created November 16, 2009 21:19
Show Gist options
  • Save aslakhellesoy/236324 to your computer and use it in GitHub Desktop.
Save aslakhellesoy/236324 to your computer and use it in GitHub Desktop.
Feature: Submit Webform
As a visitor to xxx.com
I want to submit a form with some personal information
and be redirected to a thank-you page.
Scenario: Form Submission
Given I visit "http://xxx/webform.html"
And I type "home" into field "loan_purpose",
And I type "99999" into field "loan_amount",
And I type "Joe" into field "first_name",
And I type "Blo" into field "last_name",
And I type "123 Elmwood" into field "street_address",
And I type "Fairfield" into field "city",
And I type "IL" into field "state",
And I type "55555" into field "zip",
And I type "yes" on radio "send_newsletter",
And I type "friend" into field "how_did_you_find_us",
And I type "123456789" into field "soc",
And I type "5-31-56" into field "birthdate",
And I type "First National" into field "current_lender",
And I type "190000" into field "current_loan_amt",
And I type "1200" into field "current_payment",
And I type "no" on radio "is_tax_included",
And I type "240000" into field "est_home_value",
And I type "3000" into field "monthly_income",
And I type "5" into field "time_at_present_employer",
When I hit Submit,
Then I should see "Thank you".
Scenario Outline: Admin Views Submissions
Given I am logged into "http://xxx/admin/" as user="xxx", password="xxx",
And I visit "http://xxx/?q=sales_leads",
Then I should see "Loan Purpose: home",
And I should see "Loan Amount: 99999".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment