blob: 124274432809af5b90516a29568632c92ea01d86 (
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_field
element :label_description_field
element :label_color_field
element :label_create_button
end
def click_label_create_button
click_element :label_create_button
end
def fill_title(title)
fill_element :label_title_field, title
end
def fill_description(description)
fill_element :label_description_field, description
end
def fill_color(color)
fill_element :label_color_field, color
end
end
end
end
end
|