summaryrefslogtreecommitdiff
path: root/qa/qa/page/component/project/templates.rb
blob: 8baf15acdff53e920e88b7eb4fd724060c74cbf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module QA
  module Page::Component
    module Project
      module Templates
        def use_template_for_project(project_name)
          within find_element(:template_option_row, text: project_name) do
            click_element :use_template_button
          end
        end
      end
    end
  end
end