Skip to content

Instantly share code, notes, and snippets.

@markrow
Created April 20, 2012 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save markrow/2430887 to your computer and use it in GitHub Desktop.
Save markrow/2430887 to your computer and use it in GitHub Desktop.
Scenario Outline with Consolidated validation
Scenario Outline: Profile creation with invalid fields
Given I am a registered user without a profile
And I login
And visit the profile creation page
And I am visiting the site from "<locale>"
When I fill in "<field>" with "<value>"
And submit the form
Then I should see an "<error>"
Examples:
| locale | field | value | error |
| en_US | first_name | | value_required |
| en_US | first_name | a | min_length_2 |
| en_US | first_name | 123 | must_be_alpha_only |
| en_US | first_name | abc123 | must_be_alpha_only |
| en_US | last_name | | value_required |
| en_US | last_name | a | min_length_2 |
| en_US | last_name | 1234 | must_be_alpha_only |
| en_US | last_name | abc123 | must_be_alpha_only |
| en_US | phone_number | | value_required |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment