Commit dbef128f authored by at.ramya's avatar at.ramya

Adding methods

parent 25b658cf
# frozen_string_literal: true
module QA module QA
module Page module Page
module MergeRequest module MergeRequest
...@@ -45,7 +47,7 @@ module QA ...@@ -45,7 +47,7 @@ module QA
element :discussion_reply element :discussion_reply
end end
view 'app/assets/javascripts/diffs/components/parallel_diff_table_row.vue' do view 'app/assets/javascripts/diffs/components/inline_diff_table_row.vue' do
element :new_diff_line element :new_diff_line
end end
...@@ -132,6 +134,35 @@ module QA ...@@ -132,6 +134,35 @@ module QA
click_element :squash_checkbox click_element :squash_checkbox
end end
def go_to_discussions_tab
click_element :notes_tab
end
def go_to_diffs_tab
click_element :diffs_tab
end
def add_comment_to_diff(text)
wait(time: 5) do
page.has_text?("No newline at end of file")
end
all_elements(:new_diff_line).first.hover
click_element :diff_comment
fill_element :reply_input, text
end
def start_discussion(text)
fill_element :comment_input, text
click_element :note_dropdown
click_element :discussion_option
click_element :comment_button
end
def reply_to_discussion(reply_text)
all_elements(:discussion_reply).first.click
fill_element :reply_input, reply_text
end
end end
end end
end 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