summaryrefslogtreecommitdiff
path: root/qa/qa/page/main/projects.rb
blob: 28d3a4240221da07fd5339cf10f9a067d49f4038 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module QA
  module Page
    module Main
      class Projects < Page::Base
        def go_to_new_project
          ##
          # There are 'New Project' and 'New project' buttons on the projects
          # page, so we can't use `click_on`.
          #
          button = find('a', text: /^new project$/i)
          button.click
        end
      end
    end
  end
end