summaryrefslogtreecommitdiff
path: root/qa/qa/page/component
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-20 21:09:17 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-20 21:09:17 +0000
commit68f1860e6f1f9e8441c434f4e62238c359ce8c7c (patch)
treed12eab92b88fdcd0bdcea4586ec5352898b16e6c /qa/qa/page/component
parent1af0d38d9c5a88d7123283c714857dc4da991371 (diff)
downloadgitlab-ce-68f1860e6f1f9e8441c434f4e62238c359ce8c7c.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/qa/page/component')
-rw-r--r--qa/qa/page/component/breadcrumbs.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/qa/qa/page/component/breadcrumbs.rb b/qa/qa/page/component/breadcrumbs.rb
new file mode 100644
index 00000000000..656aa380bbd
--- /dev/null
+++ b/qa/qa/page/component/breadcrumbs.rb
@@ -0,0 +1,19 @@
+# frozen_string_literal: true
+
+module QA
+ module Page
+ module Component
+ module Breadcrumbs
+ def self.included(base)
+ base.view 'app/views/layouts/nav/_breadcrumbs.html.haml' do
+ element :breadcrumb_links_content
+ end
+ end
+
+ def has_breadcrumb?(text)
+ has_element?(:breadcrumb_links_content, text: text)
+ end
+ end
+ end
+ end
+end