summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/wiki/edit.rb
blob: 1ccd67349c30fd205d3f35cb2348d2b9d27a25c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module QA
  module Page
    module Project
      module Wiki
        class Edit < Page::Base
          view 'app/views/projects/wikis/_main_links.html.haml' do
            element :new_page_link, 'New page' # rubocop:disable QA/ElementWithPattern
            element :page_history_link, 'Page history' # rubocop:disable QA/ElementWithPattern
            element :edit_page_link, 'Edit' # rubocop:disable QA/ElementWithPattern
          end

          def click_edit
            click_on 'Edit'
          end
        end
      end
    end
  end
end