Ver a proveniência

fix: update in cypress tests: list_view.js

version-14
Gavin D'souza há 5 anos
ascendente
cometimento
e14dc883d9
2 ficheiros alterados com 8 adições e 7 eliminações
  1. +7
    -6
      cypress/integration/list_view.js
  2. +1
    -1
      frappe/public/js/frappe/list/list_view.js

+ 7
- 6
cypress/integration/list_view.js Ver ficheiro

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


+ 1
- 1
frappe/public/js/frappe/list/list_view.js Ver ficheiro

@@ -129,7 +129,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
this.toggle_auto_refresh(false),
item.action,
this.toggle_auto_refresh(true)
])
]);
}
const $item = this.page.add_actions_menu_item(item.label, action, item.standard);
if (item.class) {


Carregando…
Cancelar
Guardar