Commit 3061eb48 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'qa-sl-nightly-117-stablize-editing-scope-label-spec' into 'master'

Stablize editing scope label spec - retry if dropdown is not visible

Closes gitlab-org/quality/nightly#117

See merge request gitlab-org/gitlab-ee!14841
parents 2c794e96 f14c0059
...@@ -71,7 +71,10 @@ module QA ...@@ -71,7 +71,10 @@ module QA
end end
def select_labels_and_refresh(labels) def select_labels_and_refresh(labels)
click_element(:edit_link_labels) Support::Retrier.retry_until do
click_element(:edit_link_labels)
has_element?(:dropdown_menu_labels, text: labels.first)
end
labels.each do |label| labels.each do |label|
within_element(:dropdown_menu_labels, text: label) do within_element(:dropdown_menu_labels, text: label) do
......
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