summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalmyr Lima <walmyr@gitlab.com>2019-07-10 15:50:21 +0200
committerWalmyr Lima <walmyr@gitlab.com>2019-07-11 14:41:57 +0200
commit253bb8db0c525fa93e75da59acea71034649bf11 (patch)
tree9ad7c343ba38714f47f66c0d88a324300eed6bd1
parent0d1eb7d638aacccf8efbb6cfc9c62a31d2ba6d5b (diff)
downloadgitlab-ce-253bb8db0c525fa93e75da59acea71034649bf11.tar.gz
Update page object with new element and method
-rw-r--r--qa/qa/page/component/note.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/qa/qa/page/component/note.rb b/qa/qa/page/component/note.rb
index 07e191f1c9b..fe324574f4d 100644
--- a/qa/qa/page/component/note.rb
+++ b/qa/qa/page/component/note.rb
@@ -10,6 +10,10 @@ module QA
element :discussion_option
end
+ base.view 'app/assets/javascripts/notes/components/note_actions.vue' do
+ element :note_edit_button
+ end
+
base.view 'app/assets/javascripts/notes/components/note_form.vue' do
element :reply_input
element :reply_comment_button
@@ -49,6 +53,12 @@ module QA
def expand_replies
click_element :expand_replies
end
+
+ def edit_comment(text)
+ click_element :note_edit_button
+ fill_element :reply_input, text
+ click_element :reply_comment_button
+ end
end
end
end