Created
June 3, 2011 18:04
-
-
Save jpcody/1006812 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scenario "A user should be able to save an opportunity" do | |
all('input[type="text"]').each{ |input| fill_in( input[:id], :with => "Test Data" ) } | |
all('select').each do |select| | |
option = first("##{select[:id]} option") | |
select( option[:value], :from => select[:id] ) | |
end | |
click_on( "Save" ) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment