Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-01-18 16:10:49 +0300
committerSanad Liaquat <sliaquat@gitlab.com>2019-01-18 16:10:49 +0300
commit10763a9d8845e6fb685418efa8c11bbf7964a87b (patch)
tree875fa8b7ca3ca5962ec08cf17032d6cd47e53608 /qa
parentc9504df601566a4a1cff5b1383a2e994c104e210 (diff)
Wait for label svg to load
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/label/index.rb10
1 files changed, 10 insertions, 0 deletions
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