summaryrefslogtreecommitdiff
path: root/qa/qa/page/label/index.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/label/index.rb')
-rw-r--r--qa/qa/page/label/index.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/qa/qa/page/label/index.rb b/qa/qa/page/label/index.rb
index 97ce8f0eba5..f0d323ca3b4 100644
--- a/qa/qa/page/label/index.rb
+++ b/qa/qa/page/label/index.rb
@@ -1,7 +1,11 @@
+# frozen_string_literal: true
+
module QA
module Page
module Label
class Index < Page::Base
+ include Component::LazyLoader
+
view 'app/views/shared/labels/_nav.html.haml' do
element :label_create_new
end
@@ -10,10 +14,6 @@ module QA
element :label_svg
end
- view 'app/assets/javascripts/lazy_loader.js' do
- element :js_lazy_loaded
- end
-
def go_to_new_label
# 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_element?)