summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/fork/new.rb
blob: e2f2e9330ddcf4ae7108707243754abbc08e28fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module QA
  module Page
    module Project
      module Fork
        class New < Page::Base
          view 'app/views/projects/forks/_fork_button.html.haml' do
            element :fork_namespace_button
          end

          def choose_namespace(namespace = Runtime::Namespace.path)
            click_element(:fork_namespace_button, name: namespace)
          end
        end
      end
    end
  end
end