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:
parent
1b3affafab
commit
9e2cea3194
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue