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
Jérome Perrin
gitlab-ce
Commits
c2b869a1
Commit
c2b869a1
authored
May 03, 2017
by
blackst0ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs for merge requests
parent
35160a97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
spec/features/merge_requests/edit_mr_spec.rb
spec/features/merge_requests/edit_mr_spec.rb
+18
-0
No files found.
spec/features/merge_requests/edit_mr_spec.rb
View file @
c2b869a1
...
...
@@ -67,5 +67,23 @@ feature 'Edit Merge Request', feature: true do
def
get_textarea_height
page
.
evaluate_script
(
'document.getElementById("merge_request_description").offsetHeight'
)
end
describe
'"edited by" message'
,
js:
true
do
context
'when merge request is updated'
do
it
'shows "edited by" mesage on title update'
do
fill_in
'merge_request_title'
,
with:
'hello world'
click_button
'Save changes'
expect
(
page
).
to
have_content
(
"Edited less than a minute ago by
#{
user
.
name
}
"
)
end
it
'shows "edited by" mesage on description update'
do
fill_in
'merge_request_description'
,
with:
'hello world'
click_button
'Save changes'
expect
(
page
).
to
have_content
(
"Edited less than a minute ago by
#{
user
.
name
}
"
)
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