summaryrefslogtreecommitdiff
path: root/qa/qa/page/issuable/show.rb
blob: c02edbd286b16331aec67d2f41f209ae75066692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module QA
  module Page
    module Issuable
      class Show < Page::Base
        view 'app/views/shared/issuable/_sidebar.html.haml' do
          element :labels_block, ".issuable-show-labels"
        end

        def has_label?(label)
          page.within('.issuable-show-labels') do
            element = find('span', text: label, wait: 1)
            !element.nil?
          end
        end
      end
    end
  end
end