Verified Commit 1c7871ad authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

fix(list_response_feedbacks_test): find new api button instead of old link button

parent 7c02784d
Pipeline #28187 passed with stage
in 33 minutes and 13 seconds
......@@ -108,7 +108,7 @@ class ListResponseFeedbacksTest < ApplicationSystemTestCase
@assignment_fb_pendent
])
assert_equal @superadmin, @assignment_fb_pendent.reload.reviewer
within 'tbody' do
page.find("[data-url$=\"#{polymorphic_path([
@group_assignment_fb_pendent.volunteer,
......@@ -176,11 +176,11 @@ class ListResponseFeedbacksTest < ApplicationSystemTestCase
" am #{I18n.l(@group_assignment_fb_pendent.responsible_at.to_date)}"
assert page.has_text? "Übernommen durch #{@superadmin.email}"\
" am #{I18n.l(@assignment_fb_pendent.responsible_at.to_date)}"
assert page.has_link? 'Übernehmen', match_polymorph_path([
assert page.find("[data-url$=\"#{polymorphic_path([
noone_reponsible_feedback.volunteer,
noone_reponsible_feedback.feedbackable,
noone_reponsible_feedback
])
], action: :take_responsibility)}\"]")
within page.find_all('nav.section-navigation').last do
click_link 'Übernommen'
......@@ -191,11 +191,12 @@ class ListResponseFeedbacksTest < ApplicationSystemTestCase
" am #{I18n.l(@group_assignment_fb_pendent.responsible_at.to_date)}"
refute page.has_text? "Übernommen durch #{@superadmin.email}"\
" am #{I18n.l(@assignment_fb_pendent.responsible_at.to_date)}"
assert page.has_link? 'Übernehmen', match_polymorph_path([
assert page.find("[data-url$=\"#{polymorphic_path([
noone_reponsible_feedback.volunteer,
noone_reponsible_feedback.feedbackable,
noone_reponsible_feedback
])
], action: :take_responsibility)}\"]")
click_link 'Übernommen: Offen'
within 'li.dropdown.open' do
......
Supports Markdown
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