Commit 4fdfa421 authored by Clement Ho's avatar Clement Ho

Fix FE part of issues spec

parent 7b5c9521
...@@ -33,14 +33,12 @@ export default { ...@@ -33,14 +33,12 @@ export default {
saveAssignees() { saveAssignees() {
this.loading = true; this.loading = true;
function setLoadingFalse() {
this.loading = false;
}
this.mediator.saveAssignees(this.field) this.mediator.saveAssignees(this.field)
.then(setLoadingFalse.bind(this)) .then(() => {
this.loading = false;
})
.catch(() => { .catch(() => {
setLoadingFalse(); this.loading = false;
return new Flash('Error occurred when saving assignees'); return new Flash('Error occurred when saving assignees');
}); });
}, },
......
...@@ -742,7 +742,7 @@ describe 'Issues', feature: true do ...@@ -742,7 +742,7 @@ describe 'Issues', feature: true do
include WaitForVueResource include WaitForVueResource
it 'updates the title', js: true do it 'updates the title', js: true do
issue = create(:issue, author: @user, assignee: @user, project: project, title: 'new title') issue = create(:issue, author: @user, assignees: [@user], project: project, title: 'new title')
visit namespace_project_issue_path(project.namespace, project, issue) visit namespace_project_issue_path(project.namespace, project, issue)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment