Merge branch 'list-view-freeze-fix' of github.com:gavindsouza/frappe into list-view-freeze-fix

This commit is contained in:
Suraj Shetty 2019-09-26 19:28:57 +05:30
commit 7ce8a9e498
2 changed files with 6 additions and 8 deletions

View file

@ -19,14 +19,13 @@ context('List View', () => {
cy.route({
method: 'POST',
url:'api/method/frappe.model.workflow.bulk_workflow_approval'
}).then(()=> {
cy.route({
method: 'GET',
url:'api/method/frappe.desk.reportview.get'
})
}).as('update-view');
}).as('bulk-approval');
cy.route({
method: 'POST',
url:'api/method/frappe.desk.reportview.get'
}).as('real-time-update');
cy.wrap(elements).contains('Approve').click();
cy.wait('@update-view');
cy.wait(['@bulk-approval', '@real-time-update']);
cy.get('.list-row-container:visible').should('contain', 'Approved');
});
});

View file

@ -1041,7 +1041,6 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
// in the listview according to filters applied
// let's remove it manually
this.data = this.data.filter(d => d.name !== name);
this.$result.find('.list-row-container').remove();
this.render_list();
return;
}