Commit a7fe71aa authored by Walmyr Lima's avatar Walmyr Lima

Update page objects with new elements and methods

parent 87400570
...@@ -12,9 +12,17 @@ module QA ...@@ -12,9 +12,17 @@ module QA
element :issue_filter_form, /form_tag.+class: 'filter-form / # rubocop:disable QA/ElementWithPattern element :issue_filter_form, /form_tag.+class: 'filter-form / # rubocop:disable QA/ElementWithPattern
element :issue_filter_input, /%input.form-control.filtered-search/ # rubocop:disable QA/ElementWithPattern element :issue_filter_input, /%input.form-control.filtered-search/ # rubocop:disable QA/ElementWithPattern
end end
view 'ee/app/views/projects/issues/_issue_weight.html.haml' do
element :issuable_weight
end
end end
end end
def issuable_weight
find_element(:issuable_weight)
end
def wait_for_issue_replication(issue) def wait_for_issue_replication(issue)
wait do wait do
filter_by_title(issue.title) filter_by_title(issue.title)
......
...@@ -11,6 +11,10 @@ module QA ...@@ -11,6 +11,10 @@ module QA
view 'ee/app/assets/javascripts/related_issues/components/related_issues_block.vue' do view 'ee/app/assets/javascripts/related_issues/components/related_issues_block.vue' do
element :related_issues_loading_icon element :related_issues_loading_icon
end end
view 'ee/app/assets/javascripts/sidebar/components/weight/weight.vue' do
element :weight_label_value
end
end end
end end
...@@ -19,6 +23,10 @@ module QA ...@@ -19,6 +23,10 @@ module QA
has_no_element?(:related_issues_loading_icon) has_no_element?(:related_issues_loading_icon)
end end
end end
def weight_label_value
find_element(:weight_label_value)
end
end end
end end
end end
......
...@@ -35,12 +35,17 @@ module QA ...@@ -35,12 +35,17 @@ module QA
element :labels_block element :labels_block
element :edit_link_labels element :edit_link_labels
element :dropdown_menu_labels element :dropdown_menu_labels
element :milestone_link
end end
view 'app/views/shared/issuable/_close_reopen_button.html.haml' do view 'app/views/shared/issuable/_close_reopen_button.html.haml' do
element :reopen_issue_button element :reopen_issue_button
end end
def click_milestone_link
click_element(:milestone_link)
end
# Adds a comment to an issue # Adds a comment to an issue
# attachment option should be an absolute path # attachment option should be an absolute path
def comment(text, attachment: nil, filter: :all_activities) def comment(text, attachment: nil, filter: :all_activities)
......
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