Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
1c7871ad
Verified
Commit
1c7871ad
authored
Oct 05, 2018
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/system/list_response_feedbacks_test.rb
View file @
1c7871ad
...
...
@@ -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$=
\"
#{
polymorph
ic
_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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment