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

list.rb « wiki « project « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 224199256e1ba214ea73fb30f8c87129f3780712 (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 Project
      module Wiki
        class List < Base
          view 'app/views/shared/wikis/_pages_wiki_page.html.haml' do
            element 'wiki-page-link'
          end

          def click_page_link(page_title)
            click_element 'wiki-page-link', page_name: page_title
          end

          def has_page_listed?(page_title)
            has_element? 'wiki-page-link', page_name: page_title
          end
        end
      end
    end
  end
end