summaryrefslogtreecommitdiff
path: root/qa/qa/page/label/new.rb
blob: b5422dc94000ae4b59bfc9f65085010fc3245863 (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
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 create_label
          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