summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-01-18 18:10:49 +0500
committerSanad Liaquat <sliaquat@gitlab.com>2019-01-18 18:10:49 +0500
commit10763a9d8845e6fb685418efa8c11bbf7964a87b (patch)
tree875fa8b7ca3ca5962ec08cf17032d6cd47e53608
parentc9504df601566a4a1cff5b1383a2e994c104e210 (diff)
downloadgitlab-ce-10763a9d8845e6fb685418efa8c11bbf7964a87b.tar.gz
Wait for label svg to load
-rw-r--r--app/views/shared/empty_states/_labels.html.haml2
-rw-r--r--qa/qa/page/label/index.rb10
2 files changed, 11 insertions, 1 deletions
diff --git a/app/views/shared/empty_states/_labels.html.haml b/app/views/shared/empty_states/_labels.html.haml
index bee26cd8312..a739103641e 100644
--- a/app/views/shared/empty_states/_labels.html.haml
+++ b/app/views/shared/empty_states/_labels.html.haml
@@ -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
diff --git a/qa/qa/page/label/index.rb b/qa/qa/page/label/index.rb
index 323acd57743..effe8ca0372 100644
--- a/qa/qa/page/label/index.rb
+++ b/qa/qa/page/label/index.rb
@@ -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