From 9e2cea31940734c79d37dda780312944fb34ee10 Mon Sep 17 00:00:00 2001 From: Mark Lapierre Date: Tue, 8 Jan 2019 16:06:19 -0500 Subject: [PATCH] Split reply_to_discussion method The method has 2 parts, entering text and submitting the comment. They have to be separable because the EE batch comments test performs different actions after entering text - it doesn't always immediately submit the comment. --- qa/qa/page/component/note.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qa/qa/page/component/note.rb b/qa/qa/page/component/note.rb index 67d7f114786..f5add6bc9b5 100644 --- a/qa/qa/page/component/note.rb +++ b/qa/qa/page/component/note.rb @@ -32,9 +32,13 @@ module QA click_element :comment_button end - def reply_to_discussion(reply_text) + def type_reply_to_discussion(reply_text) all_elements(:discussion_reply).last.click fill_element :reply_input, reply_text + end + + def reply_to_discussion(reply_text) + type_reply_to_discussion(reply_text) click_element :reply_comment_button end