diff options
author | Mark Lapierre <mlapierre@gitlab.com> | 2019-01-08 16:06:19 -0500 |
---|---|---|
committer | Mark Lapierre <mlapierre@gitlab.com> | 2019-01-08 16:06:19 -0500 |
commit | 9e2cea31940734c79d37dda780312944fb34ee10 (patch) | |
tree | 6595312a33507c284fd4c0f424c07ed8ace9f69b /qa/qa/page/component | |
parent | 1b3affafab0f28c690ce93cc98ac6bd09cbda59f (diff) | |
download | gitlab-ce-9e2cea31940734c79d37dda780312944fb34ee10.tar.gz |
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.
Diffstat (limited to 'qa/qa/page/component')
-rw-r--r-- | qa/qa/page/component/note.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |