Wait for label svg to load

This commit is contained in:
Sanad Liaquat 2019-01-18 18:10:49 +05:00
parent c9504df601
commit 10763a9d88
2 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
.row.empty-state.labels
.col-12
.svg-content
.svg-content.qa-label-svg
= image_tag 'illustrations/labels.svg'
.col-12
.text-content

View File

@ -6,7 +6,17 @@ module QA
element :label_create_new
end
view 'app/views/shared/empty_states/_labels.html.haml' do
element :label_svg
end
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
end
end