summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/issue/show.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/project/issue/show.rb')
-rw-r--r--qa/qa/page/project/issue/show.rb35
1 files changed, 6 insertions, 29 deletions
diff --git a/qa/qa/page/project/issue/show.rb b/qa/qa/page/project/issue/show.rb
index 6ec80b7c9cc..1ef711d459e 100644
--- a/qa/qa/page/project/issue/show.rb
+++ b/qa/qa/page/project/issue/show.rb
@@ -26,11 +26,6 @@ module QA
element :avatar_image
end
- view 'app/assets/javascripts/sidebar/components/assignees/assignee_title.vue' do
- element :assignee_edit_link
- element :assignee_title
- end
-
view 'app/assets/javascripts/sidebar/components/assignees/uncollapsed_assignee_list.vue' do
element :more_assignees_link
end
@@ -44,6 +39,7 @@ module QA
end
view 'app/views/shared/issuable/_close_reopen_button.html.haml' do
+ element :close_issue_button
element :reopen_issue_button
end
@@ -60,16 +56,6 @@ module QA
element :new_note_form, 'attr: :note' # rubocop:disable QA/ElementWithPattern
end
- def assign(user)
- click_element(:assignee_edit_link)
- select_user(user.username)
- click_body
- end
-
- def assignee_title
- find_element(:assignee_title)
- end
-
def avatar_image_count
wait_assignees_block_finish_loading do
all_elements(:avatar_image).count
@@ -84,6 +70,10 @@ module QA
click_element(:remove_related_issue_button)
end
+ def click_close_issue_button
+ click_element :close_issue_button
+ end
+
# Adds a comment to an issue
# attachment option should be an absolute path
def comment(text, attachment: nil, filter: :all_activities)
@@ -157,25 +147,12 @@ module QA
def select_filter_with_text(text)
retry_on_exception do
- click_body
+ click_element(:title)
click_element :discussion_filter
find_element(:filter_options, text: text).click
end
end
- def select_user(username)
- find("#{element_selector_css(:assignee_block)} input").set(username)
-
- dropdown_menu_user_link_selector = '.dropdown-menu-user-link'
- at_username = "@#{username}"
- ten_seconds = 10
-
- wait(reload: false, max: ten_seconds, interval: 1) do
- has_css?(dropdown_menu_user_link_selector, wait: ten_seconds, text: at_username)
- end
- find(dropdown_menu_user_link_selector, text: at_username).click
- end
-
def wait_assignees_block_finish_loading
within_element(:assignee_block) do
wait(reload: false, max: 10, interval: 1) do