Commit 10e49b6c authored by Walmyr Lima's avatar Walmyr Lima

Update page object with new elements and methods

parent 859e1050
......@@ -14,10 +14,24 @@ module QA
view 'ee/app/assets/javascripts/sidebar/components/weight/weight.vue' do
element :weight_label_value
element :edit_weight_link
element :remove_weight_link
element :weight_input_field
element :weight_no_value_content
end
end
end
def click_remove_weight_link
click_element(:remove_weight_link)
end
def set_weight(weight)
click_element(:edit_weight_link)
fill_element(:weight_input_field, weight)
send_keys_to_element(:weight_input_field, :enter)
end
def wait_for_related_issues_to_load
wait(reload: false) do
has_no_element?(:related_issues_loading_icon)
......@@ -27,6 +41,10 @@ module QA
def weight_label_value
find_element(:weight_label_value)
end
def weight_no_value_content
find_element(:weight_no_value_content)
end
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment