Commit 8f82245f authored by Jiri Strojil's avatar Jiri Strojil

Fixed test

parent 751dca28
Pipeline #32527 passed with stage
in 35 minutes and 35 seconds
......@@ -71,29 +71,6 @@ class VolunteerSubmitsAfterRemindTest < ApplicationSystemTestCase
assert_text 'Die Stunden und Halbjahres-Rapporte wurden erfolgreich bestätigt.'
test 'volunteer_can_add_hours_and_feedback_for_their_group_assignment' do
group_assignment = @group_offer.group_assignments.where(volunteer: @volunteer).last
visit last_submitted_hours_and_feedbacks_group_assignment_path(group_assignment)
click_link 'Stunden erfassen'
fill_in 'Datum des Treffens / des Kurses', with:'%d.%m.%Y')
fill_in 'Stunden', with: '2.25'
click_button 'Stunden erfassen'
assert_text 'Stunden wurden erfolgreich erfasst.'
assert_text group_assignment.to_label
assert_text @group_offer_feedback.comments
click_link 'Halbjahres-Rapport erfassen'
fill_in 'Bemerkungen', with: 'new feedback from volunteer'
click_button 'Halbjahres-Rapport erfassen'
assert_text 'Halbjahres-Rapport wurde erfolgreich erstellt.'
assert_text group_assignment.to_label
assert_text @group_offer_feedback.comments
assert_text 'new feedback from volunteer'
test 'volunteer can see only own hours and feedbacks of group assignment' do
@group_assignment1 = @group_offer.group_assignments.where(volunteer: @volunteer).last
@hour_volunteer1 = create :hour, volunteer: @volunteer, hourable: @group_offer,
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