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

breadcrumbs.rb « component « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 08faea0c7607fc2701bbe0c39bbfbabe57043146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module QA
  module Page
    module Component
      module Breadcrumbs
        extend QA::Page::PageConcern

        def self.included(base)
          super

          base.view 'app/views/layouts/nav/breadcrumbs/_breadcrumbs.html.haml' do
            element 'breadcrumb-links'
          end
        end

        def has_breadcrumb?(text)
          has_element?('breadcrumb-links', text: text)
        end
      end
    end
  end
end