summaryrefslogtreecommitdiff
path: root/qa/qa/page/issuable/sidebar.rb
blob: dec2ce1eab345234aaf1fff6ddec1662595cbff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module QA
  module Page
    module Issuable
      class Sidebar < 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
            !!find('span', text: label)
          end
        end
      end
    end
  end
end