Skip to content

Instantly share code, notes, and snippets.

@kirkconnell
Created November 24, 2010 21:52
Show Gist options
  • Save kirkconnell/714502 to your computer and use it in GitHub Desktop.
Save kirkconnell/714502 to your computer and use it in GitHub Desktop.
Scenario: Generic field sanitization
Given I am an advertising user "[email protected]"/"password"
And I have the extended profile (law profile) on the site "Lawgical.com" (law)
And I am subscribed to the product "Big Funzy Site" on the profile (law profile) for $87 monthly
And the profile (law profile) has the following content fields defined:
| generic_field_number | field_name | description | default_text | output_format |
| 1 | Cat Food Name | | | html |
And I have signed in with "[email protected]"/"password"
When I go to the products page
And I follow "Manage Profiles" within the site "Lawgical.com"
And I follow "Edit Profile" within the profile (law profile)
And I fill in the following data:
| type | name | value |
| fill_in | Cat Food Name | <script>bu();</script> |
And I press "Save Changes"
Then I should see "updated" within the flash success message
And I should see "Cat Food Name" within the flash success message
When I follow "Edit Profile" within the profile (law profile)
And the "profile_content_1" field should contain "bu();"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment