Commit 9e2cea31 authored by Mark Lapierre's avatar Mark Lapierre

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.
parent 1b3affaf
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment