Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new.rb « milestone « group « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50965769c9e16f6f7aba174678b226cc7a725603 (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
28
29
# frozen_string_literal: true

module QA
  module Page
    module Group
      module Milestone
        class New < Page::Milestone::New
          view 'app/views/groups/milestones/_form.html.haml' do
            element 'create-milestone-button'
            element 'milestone-description-field'
            element 'milestone-title-field'
          end

          def click_create_milestone_button
            click_element('create-milestone-button')
          end

          def set_description(description)
            fill_element('milestone-description-field', description)
          end

          def set_title(title)
            fill_element('milestone-title-field', title)
          end
        end
      end
    end
  end
end