Verify that the volunteer appears in the management interface
This commit is contained in:
parent
09440ba9c5
commit
9848898695
|
@ -14,5 +14,10 @@ feature 'Volunteering' do
|
|||
|
||||
fill_in_volunteer_profile
|
||||
expect(page).to have_content I18n.t('views.volunteers.successful_application')
|
||||
|
||||
sign_in_as_admin
|
||||
click_on_first_conference_in_management_root
|
||||
click_on I18n.t('activerecord.models.volunteership', count: 2).capitalize
|
||||
expect(page).to have_content 'Volunteer Foo'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -113,7 +113,7 @@ module FeatureHelpers
|
|||
|
||||
def fill_in_volunteer_profile
|
||||
attach_file Volunteer.human_attribute_name(:picture), Rails.root.join('spec', 'support', 'picture.jpg')
|
||||
fill_in Volunteer.human_attribute_name(:name), with: 'Foo'
|
||||
fill_in Volunteer.human_attribute_name(:name), with: 'Volunteer Foo'
|
||||
fill_in Volunteer.human_attribute_name(:email), with: 'foo@example.com'
|
||||
fill_in Volunteer.human_attribute_name(:phone), with: '+359666666'
|
||||
check VolunteerTeam.first.name
|
||||
|
|
Loading…
Reference in New Issue