Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/component/note.rb')
-rw-r--r--qa/qa/page/component/note.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/qa/qa/page/component/note.rb b/qa/qa/page/component/note.rb
index 84cc481945f..638c46f228f 100644
--- a/qa/qa/page/component/note.rb
+++ b/qa/qa/page/component/note.rb
@@ -73,11 +73,13 @@ module QA
end
def collapse_replies
+ close_rich_text_promo_popover_if_present
click_element :collapse_replies_button
end
# Attachment option should be an absolute path
def comment(text, attachment: nil, filter: :all_activities)
+ close_rich_text_promo_popover_if_present
method("select_#{filter}_filter").call
fill_element :comment_field, "#{text}\n"
@@ -148,7 +150,8 @@ module QA
def start_discussion(text)
fill_element :comment_field, text
- within_element(:comment_button) { click_button(class: 'dropdown-toggle-split') }
+ close_rich_text_promo_popover_if_present
+ within_element(:comment_button) { click_button(class: 'gl-new-dropdown-toggle') }
click_element :discussion_menu_item
click_element :comment_button