Resolve "List of projects not loading when trying to create an issue from a board (TypeError)"
This commit is contained in:
parent
5815b830c8
commit
4d4d0a7e25
|
@ -115,6 +115,7 @@ export default {
|
|||
:id="list.id + '-title'"
|
||||
class="form-control"
|
||||
type="text"
|
||||
name="issue_title"
|
||||
autocomplete="off"
|
||||
/>
|
||||
<project-select
|
||||
|
|
|
@ -46,7 +46,7 @@ export default {
|
|||
selectable: true,
|
||||
data: (term, callback) => {
|
||||
this.loading = true;
|
||||
return Api.groupProjects(this.groupId, term, projects => {
|
||||
return Api.groupProjects(this.groupId, term, {}, projects => {
|
||||
this.loading = false;
|
||||
callback(projects);
|
||||
});
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Fixed list of projects not loading in group boards
|
||||
merge_request: 20955
|
||||
author:
|
||||
type: fixed
|
|
@ -0,0 +1,35 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Group Boards' do
|
||||
let(:group) { create(:group) }
|
||||
let!(:project) { create(:project_empty_repo, group: group) }
|
||||
let(:user) { create(:group_member, :maintainer, user: create(:user), group: group ).user }
|
||||
|
||||
before do
|
||||
sign_in(user)
|
||||
end
|
||||
|
||||
context 'Creates a an issue', :js do
|
||||
before do
|
||||
visit group_boards_path(group)
|
||||
end
|
||||
|
||||
it 'Adds an issue to the backlog' do
|
||||
page.within(find('.board', match: :first)) do
|
||||
issue_title = 'New Issue'
|
||||
find(:css, '.issue-count-badge-add-button').click
|
||||
expect(find('.board-new-issue-form')).to be_visible
|
||||
|
||||
fill_in 'issue_title', with: issue_title
|
||||
find('.dropdown-menu-toggle').click
|
||||
|
||||
wait_for_requests
|
||||
|
||||
click_link(project.name)
|
||||
click_button 'Submit issue'
|
||||
|
||||
expect(page).to have_content(issue_title)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue