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
4178ddee
Commit
4178ddee
authored
Sep 25, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests to check if files are resolved with Edit Inline mode
parent
12ca1608
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
spec/features/merge_requests/conflicts_spec.rb
spec/features/merge_requests/conflicts_spec.rb
+26
-0
No files found.
spec/features/merge_requests/conflicts_spec.rb
View file @
4178ddee
...
...
@@ -36,6 +36,32 @@ feature 'Merge request conflict resolution', js: true, feature: true do
retry
end
end
context
'when in inline mode'
do
it
'resolves files manually'
do
within
find
(
'.files-wrapper .diff-file.inline-view'
,
text:
'files/ruby/popen.rb'
)
do
click_button
'Edit inline'
wait_for_ajax
execute_script
(
'ace.edit($(".files-wrapper .diff-file.inline-view pre")[0]).setValue("One morning");'
);
end
within
find
(
'.files-wrapper .diff-file'
,
text:
'files/ruby/regex.rb'
)
do
click_button
'Edit inline'
wait_for_ajax
execute_script
(
'ace.edit($(".files-wrapper .diff-file.inline-view pre")[1]).setValue("Gregor Samsa woke from troubled dreams");'
);
end
click_button
'Commit conflict resolution'
wait_for_ajax
expect
(
page
).
to
have_content
(
'All merge conflicts were resolved'
)
click_on
'Changes'
wait_for_ajax
expect
(
page
).
to
have_content
(
'One morning'
)
expect
(
page
).
to
have_content
(
'Gregor Samsa woke from troubled dreams'
)
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