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.
This commit is contained in:
Mark Lapierre 2019-01-08 16:06:19 -05:00
parent 1b3affafab
commit 9e2cea3194

View file

@ -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