Commit d74b3cc1 authored by Sanad Liaquat's avatar Sanad Liaquat

Add comments explaining the wait

parent 10763a9d
......@@ -11,11 +11,12 @@ module QA
end
def go_to_new_label
wait(reload: false) do
# The 'labels.svg' takes a fraction of a second to load after which the "New label" button shifts up a bit
# This can cause webdriver to miss the hit so we wait for the svg to load (implicitly with has_css?)
# before clicking the button.
within_element(:label_svg) do
has_css?('.js-lazy-loaded')
end
end
click_element :label_create_new
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