fix(style): add wait for test

This commit is contained in:
Rushabh Mehta 2022-02-22 12:51:11 +05:30
parent 15c66f6900
commit 1e48d058b7

View file

@ -12,7 +12,7 @@ context('List View', () => {
cy.get('.list-row-container .list-row-checkbox').click({ multiple: true, force: true });
cy.get('.actions-btn-group button').contains('Actions').should('be.visible');
cy.intercept('/api/method/frappe.desk.reportview.get').as('list-refresh');
cy.wait(300); // wait before you hit another refresh
cy.wait(3000); // wait before you hit another refresh
cy.get('button[data-original-title="Refresh"]').click();
cy.wait('@list-refresh');
cy.get('.list-row-container .list-row-checkbox:checked').should('be.visible');