Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
dbef128f
Commit
dbef128f
authored
Oct 30, 2018
by
at.ramya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding methods
parent
25b658cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
qa/qa/page/merge_request/show.rb
qa/qa/page/merge_request/show.rb
+32
-1
No files found.
qa/qa/page/merge_request/show.rb
View file @
dbef128f
# frozen_string_literal: true
module
QA
module
Page
module
MergeRequest
...
...
@@ -45,7 +47,7 @@ module QA
element
:discussion_reply
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
end
...
...
@@ -132,6 +134,35 @@ module QA
click_element
:squash_checkbox
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment