Retry if dropdown is not visible

This commit is contained in:
Sanad Liaquat 2019-07-25 18:40:47 +05:00
parent ba997f3c42
commit 09a7e5cdd0

View file

@ -70,7 +70,10 @@ module QA
end
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|
within_element(:dropdown_menu_labels, text: label) do