Commit 09a7e5cd authored by Sanad Liaquat's avatar Sanad Liaquat

Retry if dropdown is not visible

parent ba997f3c
......@@ -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
......
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