Build fix
This commit is contained in:
parent
017ed4ae37
commit
39ecce05c7
2 changed files with 12 additions and 3 deletions
|
@ -257,3 +257,7 @@
|
|||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.merge-request-form .select2-container {
|
||||
width: 250px!important;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Create New Merge Request', feature: true, js: false do
|
||||
feature 'Create New Merge Request', feature: true, js: true do
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:project, :public) }
|
||||
|
||||
|
@ -13,9 +13,12 @@ feature 'Create New Merge Request', feature: true, js: false do
|
|||
|
||||
it 'generates a diff for an orphaned branch' do
|
||||
click_link 'New Merge Request'
|
||||
select "orphaned-branch", from: "merge_request_source_branch"
|
||||
select "master", from: "merge_request_target_branch"
|
||||
|
||||
first('.js-source-branch').click
|
||||
first('.dropdown-source-branch .dropdown-content a', text: 'orphaned-branch').click
|
||||
|
||||
click_button "Compare branches"
|
||||
click_link "Changes"
|
||||
|
||||
expect(page).to have_content "README.md"
|
||||
expect(page).to have_content "wm.png"
|
||||
|
@ -23,6 +26,8 @@ feature 'Create New Merge Request', feature: true, js: false do
|
|||
fill_in "merge_request_title", with: "Orphaned MR test"
|
||||
click_button "Submit merge request"
|
||||
|
||||
click_link "Check out branch"
|
||||
|
||||
expect(page).to have_content 'git checkout -b orphaned-branch origin/orphaned-branch'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue