summaryrefslogtreecommitdiff
path: root/qa/qa/page/label/new.rb
blob: a40179489c13368660cab46df9a29f5121bfca63 (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
30
31
32
# frozen_string_literal: true

module QA
  module Page
    module Label
      class New < Page::Base
        view 'app/views/shared/labels/_form.html.haml' do
          element :label_title
          element :label_description
          element :label_color
          element :label_create_button
        end

        def click_label_create_button
          click_element :label_create_button
        end

        def fill_title(title)
          fill_element :label_title, title
        end

        def fill_description(description)
          fill_element :label_description, description
        end

        def fill_color(color)
          fill_element :label_color, color
        end
      end
    end
  end
end