Commit 83f5ac63 authored by marcheing's avatar marcheing

Complete profile creation feature

parent 4cfb29bc
......@@ -6,7 +6,7 @@ Feature: Creating a Profile
Background:
Given I have a registered and confirmed user
@javascript @wip
@javascript
Scenario: Filling valid data
Given I am at the home page
And I am logged in
......
......@@ -7,11 +7,11 @@ Given(/^I click the new profile link$/) do
end
Given(/^I select "(.*?)" as my birthdate's (.*?)$/) do |value, field|
step "I select \"#{value}\" from \"birthdate[#{field}]\""
step "I select \"#{value}\" from \"profile[#{field}]\""
end
Given(/^I mark the terms of service checkbox$/) do
step 'I check the "terms_of_service" box'
step "I check the \"user-terms\" box"
end
When(/^I click on the button to send the profile information$/) do
......@@ -47,8 +47,8 @@ Given(/^I select the state "(.*?)"$/) do |state|
end
Given(/^I select any occupation$/) do
option = all('#occupation option').sample.text
step "I select \"#{option}\" from \"occupation\""
option = all('#profile_occupation option').sample.text
step "I select \"#{option}\" from \"profile_occupation\""
end
Then(/^I should see the error messages for multiple profile errors$/) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment