test: UI test to check if refresh work after load more

This commit is contained in:
Shariq Ansari 2022-02-15 20:35:53 +05:30
parent af7dc6b774
commit f41a05cfd9

View file

@ -46,7 +46,6 @@ context('Report View', () => {
it('test load more with count selection buttons', () => {
cy.visit('/app/contact/view/report');
cy.clear_filters();
cy.get('.list-paging-area .list-count').should('contain.text', '20 of');
cy.get('.list-paging-area .btn-more').click();
cy.get('.list-paging-area .list-count').should('contain.text', '40 of');
@ -61,6 +60,10 @@ context('Report View', () => {
cy.get('.list-paging-area .btn-more').click();
cy.get('.list-paging-area .list-count').should('contain.text', '300 of');
// check if refresh works after load more
cy.get('.page-head .standard-actions [data-original-title="Refresh"]').click();
cy.get('.list-paging-area .list-count').should('contain.text', '300 of');
cy.get('.list-paging-area .btn-group .btn-paging[data-value="500"]').click();
cy.get('.list-paging-area .list-count').should('contain.text', '500 of');