BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
de3eabc5
Commit
de3eabc5
authored
Dec 01, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix loading branches list on cherry pick modal after merge.
parent
f3a3bd50
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
mr_widget_options.js
...javascripts/vue_merge_request_widget/mr_widget_options.js
+2
-0
widget_spec.rb
spec/features/merge_requests/widget_spec.rb
+12
-0
No files found.
app/assets/javascripts/vue_merge_request_widget/mr_widget_options.js
View file @
de3eabc5
import
Project
from
'~/project'
;
import
SmartInterval
from
'~/smart_interval'
;
import
Flash
from
'../flash'
;
import
{
...
...
@@ -140,6 +141,7 @@ export default {
const
el
=
document
.
createElement
(
'div'
);
el
.
innerHTML
=
res
.
body
;
document
.
body
.
appendChild
(
el
);
Project
.
initRefSwitcher
();
}
})
.
catch
(()
=>
{
...
...
spec/features/merge_requests/widget_spec.rb
View file @
de3eabc5
...
...
@@ -63,6 +63,18 @@ describe 'Merge request', :js do
expect
(
page
).
to
have_selector
(
'.accept-merge-request'
)
expect
(
find
(
'.accept-merge-request'
)[
'disabled'
]).
not_to
be
(
true
)
end
it
'allows me to merge, see cherry-pick modal and load branches list'
do
wait_for_requests
click_button
'Merge'
wait_for_requests
click_link
'Cherry-pick'
page
.
find
(
'.js-project-refs-dropdown'
).
click
wait_for_requests
expect
(
page
.
all
(
'.js-cherry-pick-form .dropdown-content li'
).
size
).
to
be
>
1
end
end
context
'view merge request with external CI service'
do
...
...
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