Fix issues without links when added from boards new issue modal
This commit is contained in:
parent
d8dd75ca77
commit
3854d28713
|
@ -113,6 +113,8 @@ class List {
|
||||||
issue.id = data.id;
|
issue.id = data.id;
|
||||||
issue.iid = data.iid;
|
issue.iid = data.iid;
|
||||||
issue.project = data.project;
|
issue.project = data.project;
|
||||||
|
issue.path = data.real_path;
|
||||||
|
issue.referencePath = data.reference_path;
|
||||||
|
|
||||||
if (this.issuesSize > 1) {
|
if (this.issuesSize > 1) {
|
||||||
const moveBeforeId = this.issues[1].id;
|
const moveBeforeId = this.issues[1].id;
|
||||||
|
|
|
@ -63,6 +63,13 @@ describe 'Issue Boards new issue', :js do
|
||||||
page.within(first('.board .issue-count-badge-count')) do
|
page.within(first('.board .issue-count-badge-count')) do
|
||||||
expect(page).to have_content('1')
|
expect(page).to have_content('1')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
page.within(first('.card')) do
|
||||||
|
issue = project.issues.find_by_title('bug')
|
||||||
|
|
||||||
|
expect(page).to have_content(issue.to_reference)
|
||||||
|
expect(page).to have_link(issue.title, href: issue_path(issue))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'shows sidebar when creating new issue' do
|
it 'shows sidebar when creating new issue' do
|
||||||
|
|
Loading…
Reference in New Issue