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
fill_element :approvals_required_field, rule[:approvals_required]
rule.key?(:users) && rule[:users].each do |user|
select_user_member user.username
select_user_member(user.username)
end
rule.key?(:groups) && rule[:groups].each do |group|
select_group_member group.name
select_group_member(group.name)
end
click_approvers_modal_ok_button
......@@ -65,6 +65,7 @@ module QA
private
def enter_member(name)
retry_until do
within_element(:member_select_field) do
search_item(name)
end
......@@ -75,4 +76,5 @@ module QA
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