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
Tatuya Kamada
gitlab-ce
Commits
357ad44a
Commit
357ad44a
authored
Jul 18, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Rubocop errors
parent
feeb4893
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
30 deletions
+55
-30
spec/features/merge_requests/form_spec.rb
spec/features/merge_requests/form_spec.rb
+55
-30
No files found.
spec/features/merge_requests/form_spec.rb
View file @
357ad44a
...
@@ -27,7 +27,36 @@ describe 'New/edit merge request', feature: true, js: true do
...
@@ -27,7 +27,36 @@ describe 'New/edit merge request', feature: true, js: true do
end
end
it
'should update merge request'
do
it
'should update merge request'
do
update_merge_request
click_button
'Assignee'
click_link
user
.
name
page
.
find
'.js-assignee-search'
do
expect
(
page
).
to
have_content
user
.
name
end
click_button
'Milestone'
click_link
milestone
.
title
page
.
find
'.js-milestone-select'
do
expect
(
page
).
to
have_content
milestone
.
title
end
click_button
'Labels'
click_link
label
.
title
click_link
label2
.
title
page
.
find
'.js-label-select'
do
expect
(
page
).
to
have_content
label2
.
title
end
click_button
'Save changes'
page
.
find
'.issuable-sidebar'
do
expect
(
page
).
to
have_content
user
.
name
expect
(
page
).
to
have_content
milestone
.
title
expect
(
page
).
to
have_content
label
.
title
expect
(
page
).
to
have_content
label2
.
title
end
end
end
end
end
...
@@ -48,11 +77,6 @@ describe 'New/edit merge request', feature: true, js: true do
...
@@ -48,11 +77,6 @@ describe 'New/edit merge request', feature: true, js: true do
end
end
it
'should update merge request'
do
it
'should update merge request'
do
update_merge_request
end
end
def
update_merge_request
click_button
'Assignee'
click_button
'Assignee'
click_link
user
.
name
click_link
user
.
name
...
@@ -84,4 +108,5 @@ describe 'New/edit merge request', feature: true, js: true do
...
@@ -84,4 +108,5 @@ describe 'New/edit merge request', feature: true, js: true do
expect
(
page
).
to
have_content
label2
.
title
expect
(
page
).
to
have_content
label2
.
title
end
end
end
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