Created
February 27, 2012 02:20
-
-
Save diegodfsd/1920832 to your computer and use it in GitHub Desktop.
test signup
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
it "allows user do your signup with all required fields and redirect to home", :js => true do | |
visit new_user_registration_path | |
within("form#user_new") do | |
fill_in "user_username", :with => "username" | |
fill_in "user_address_postal_code", :with => "05529060" | |
page.execute_script("$('#user_address_street').focus()") | |
sleep(3) | |
fill_in "user_address_number", :with => "100" | |
click_on :submit | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment