gender is a text field
This commit is contained in:
parent
1bba4c60f7
commit
a230763879
6 changed files with 19 additions and 2 deletions
|
|
@ -29,7 +29,7 @@
|
|||
%h4
|
||||
= t('.your_gender')
|
||||
%br
|
||||
= select_tag 'person[profile][gender]', options_for_select(["","Female","Male"], @person.profile.gender)
|
||||
= profile.text_field :gender, :value => @profile.gender, :placeholder => t('.fill_me_out')
|
||||
|
||||
%h4
|
||||
= t('.your_birthday')
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
%h4
|
||||
Your gender
|
||||
%br
|
||||
= select_tag 'person[profile][gender]', options_for_select(["","Female","Male"], @person.profile.gender)
|
||||
= profile.text_field :gender, :value => @profile.gender, :placeholder => t(".fill_me_out")
|
||||
|
||||
%h4
|
||||
Your birthday
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@ en:
|
|||
'step_1':
|
||||
you_dont_have_any_photos: "You don't have any photos! Go to the"
|
||||
page_to_upload_some: "page to upload some."
|
||||
fill_me_out: "Fill me out"
|
||||
edit_profile: "Edit your profile"
|
||||
define_aspects: "Define your aspects"
|
||||
connect_services: "Connect your services"
|
||||
|
|
|
|||
13
features/edits_profile.feature
Normal file
13
features/edits_profile.feature
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
@javascript
|
||||
Feature: editing your profile
|
||||
|
||||
Scenario: editing gender with a textbox
|
||||
Given I am signed in
|
||||
And I click on my name in the header
|
||||
And I follow "edit profile"
|
||||
Then I should be on my edit profile page
|
||||
When I fill in "person_profile_gender" with "F"
|
||||
And I press "Update Profile"
|
||||
Then I should be on my edit profile page
|
||||
And I should see "Profile updated"
|
||||
And the "person_profile_gender" field should contain "F"
|
||||
|
|
@ -14,6 +14,7 @@ Feature: new user registration
|
|||
Scenario: new user goes through the setup wizard
|
||||
When I fill in "person_profile_first_name" with "O"
|
||||
And I fill in "person_profile_last_name" with "Hai"
|
||||
And I fill in "person_profile_gender" with "guess!"
|
||||
And I press "Save and continue"
|
||||
Then I should see "Profile updated"
|
||||
And I should see "Your aspects"
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ module NavigationHelpers
|
|||
send("#{$1.gsub(/\W+/, '_')}_path", @it)
|
||||
when /^the ([\w ]+) page$/
|
||||
send("#{$1.gsub(/\W+/, '_')}_path")
|
||||
when /^my edit profile page$/
|
||||
edit_person_path(@me.person)
|
||||
when /^"(\/.*)"/
|
||||
$1
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue