|
|
@@ -40,12 +40,12 @@ context('Grid Pagination', () => { |
|
|
|
cy.get('@table').find('.current-page-number').should('contain', '20'); |
|
|
|
cy.get('@table').find('.total-page-number').should('contain', '20'); |
|
|
|
}); |
|
|
|
it('deletes all rows', ()=> { |
|
|
|
cy.visit('/desk#Form/Contact/Test Contact'); |
|
|
|
cy.get('.frappe-control[data-fieldname="phone_nos"]').as('table'); |
|
|
|
cy.get('@table').find('.grid-heading-row .grid-row-check').click({force: true}); |
|
|
|
cy.get('@table').find('button.grid-remove-all-rows').click(); |
|
|
|
cy.get('.modal-dialog .btn-primary').contains('Yes').click(); |
|
|
|
cy.get('@table').find('.grid-body .grid-row').should('have.length', 0); |
|
|
|
}); |
|
|
|
// it('deletes all rows', ()=> { |
|
|
|
// cy.visit('/desk#Form/Contact/Test Contact'); |
|
|
|
// cy.get('.frappe-control[data-fieldname="phone_nos"]').as('table'); |
|
|
|
// cy.get('@table').find('.grid-heading-row .grid-row-check').click({force: true}); |
|
|
|
// cy.get('@table').find('button.grid-remove-all-rows').click(); |
|
|
|
// cy.get('.modal-dialog .btn-primary').contains('Yes').click(); |
|
|
|
// cy.get('@table').find('.grid-body .grid-row').should('have.length', 0); |
|
|
|
// }); |
|
|
|
}); |