summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/show.rb
blob: 3b2bac84f3f16b8dc558a3e535a6ab29da95f21c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module QA
  module Page
    module Project
      class Show < Page::Base
        def choose_repository_clone_http
          find('#clone-dropdown').click

          page.within('.clone-options-dropdown') do
            click_link('HTTP')
          end
        end

        def repository_location
          find('#project_clone').value
        end

        def project_name
          find('.project-title').text
        end

        def wait_for_push
          sleep 5
        end
      end
    end
  end
end