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: 785847011bf0b6481bcc4792d1522ff5ff01d47a (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