Commit a10b9c9a authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'ml-retry-if-dropdown-does-not-load' into 'master'

Retry select user/group in approval rule

See merge request gitlab-org/gitlab!48569
parents 40f82832 90150929
...@@ -33,10 +33,10 @@ module QA ...@@ -33,10 +33,10 @@ module QA
fill_element :approvals_required_field, rule[:approvals_required] fill_element :approvals_required_field, rule[:approvals_required]
rule.key?(:users) && rule[:users].each do |user| rule.key?(:users) && rule[:users].each do |user|
select_user_member user.username select_user_member(user.username)
end end
rule.key?(:groups) && rule[:groups].each do |group| rule.key?(:groups) && rule[:groups].each do |group|
select_group_member group.name select_group_member(group.name)
end end
click_approvers_modal_ok_button click_approvers_modal_ok_button
...@@ -65,8 +65,10 @@ module QA ...@@ -65,8 +65,10 @@ module QA
private private
def enter_member(name) def enter_member(name)
within_element(:member_select_field) do retry_until do
search_item(name) within_element(:member_select_field) do
search_item(name)
end
end end
end end
end end
......
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