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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
75fbca83
Commit
75fbca83
authored
Sep 12, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add one feature test.
parent
9945e8c4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
features/project/merge_requests.feature
features/project/merge_requests.feature
+10
-0
features/steps/project/merge_requests.rb
features/steps/project/merge_requests.rb
+10
-0
No files found.
features/project/merge_requests.feature
View file @
75fbca83
...
@@ -147,3 +147,13 @@ Feature: Project Merge Requests
...
@@ -147,3 +147,13 @@ Feature: Project Merge Requests
And
I switch to the diff tab
And
I switch to the diff tab
And
I unfold diff
And
I unfold diff
Then
I should see additional file lines
Then
I should see additional file lines
@javascript
Scenario
:
I
show comments on a merge request side-by-side diff with comments in multiple files
Given
project
"Shop"
have
"Bug NS-05"
open merge request with diffs inside
And
I visit merge request page
"Bug NS-05"
And
I switch to the diff tab
And
I leave a comment like
"Line is correct"
on line 12 of the first file
And
I leave a comment like
"Line is wrong"
on line 39 of the second file
And
I click Side-by-side Diff tab
Then
I should see comments on the side-by-side diff page
features/steps/project/merge_requests.rb
View file @
75fbca83
...
@@ -250,6 +250,16 @@ class ProjectMergeRequests < Spinach::FeatureSteps
...
@@ -250,6 +250,16 @@ class ProjectMergeRequests < Spinach::FeatureSteps
expect
(
first
(
'.text-file'
)).
to
have_content
(
'.bundle'
)
expect
(
first
(
'.text-file'
)).
to
have_content
(
'.bundle'
)
end
end
step
'I click Side-by-side Diff tab'
do
click_link
'Side-by-side Diff'
end
step
'I should see comments on the side-by-side diff page'
do
within
'.files [id^=diff]:nth-child(1) .note-text'
do
page
.
should
have_visible_content
"Line is correct"
end
end
def
project
def
project
@project
||=
Project
.
find_by!
(
name:
"Shop"
)
@project
||=
Project
.
find_by!
(
name:
"Shop"
)
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