Various small fixes for the participant UI

This commit is contained in:
Henne Vogelsang 2014-12-05 16:04:34 +01:00
parent b6abe96279
commit d13efa5f52
31 changed files with 287 additions and 279 deletions

View file

@ -18,21 +18,22 @@ feature Registration do
scenario 'updates conference registration', feature: true, js: true do
visit root_path
click_link 'Modify Registration'
click_link 'My Registration'
expect(current_path).to eq(conference_conference_registrations_path(conference.short_title))
click_link 'Edit your Registration'
expect(current_path).to eq(edit_conference_conference_registrations_path(conference.short_title))
click_button 'Update Registration'
click_button 'Update Registration'
expect(conference.user_registered?(participant)).to be(true)
end
scenario 'unregisters for a conference', feature: true, js: true do
visit root_path
click_link 'Modify Registration'
click_link 'My Registration'
expect(current_path).to eq(conference_conference_registrations_path(conference.short_title))
expect(current_path).to eq(edit_conference_conference_registrations_path(conference.short_title))
click_link 'Unregister'
expect(conference.user_registered?(participant)).to be(false)
end
end