Commit 10763a9d authored by Sanad Liaquat's avatar Sanad Liaquat

Wait for label svg to load

parent c9504df6
.row.empty-state.labels .row.empty-state.labels
.col-12 .col-12
.svg-content .svg-content.qa-label-svg
= image_tag 'illustrations/labels.svg' = image_tag 'illustrations/labels.svg'
.col-12 .col-12
.text-content .text-content
......
...@@ -6,7 +6,17 @@ module QA ...@@ -6,7 +6,17 @@ module QA
element :label_create_new element :label_create_new
end end
view 'app/views/shared/empty_states/_labels.html.haml' do
element :label_svg
end
def go_to_new_label def go_to_new_label
wait(reload: false) do
within_element(:label_svg) do
has_css?('.js-lazy-loaded')
end
end
click_element :label_create_new click_element :label_create_new
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