diff --git a/cypress/tests/core/blocks/blocks-listing.js b/cypress/tests/core/blocks/blocks-listing.js index c2cf638f05..67fded9f57 100644 --- a/cypress/tests/core/blocks/blocks-listing.js +++ b/cypress/tests/core/blocks/blocks-listing.js @@ -933,12 +933,15 @@ describe('Listing Block Tests', () => { cy.get('#field-limit-3-querystring').click().clear().type('0'); cy.get('#field-b_size-4-querystring').click().type('2'); - cy.get('.ui.pagination.menu a[value="2"]').first().click(); cy.get('#toolbar-save').click(); cy.wait('@save'); cy.wait('@content'); //test second pagination click + cy.get('.ui.pagination.menu a[value="1"][type="pageItem"]') + .first() + .click({ force: true }); cy.get('.ui.pagination.menu a[value="2"]').first().click({ force: true }); + cy.wait(1000); cy.url().should('include', '?page=2'); //on logo click go to home page and remove ?page=2 from path cy.get('.logo').first().click(); diff --git a/news/5173.bugfix b/news/5173.bugfix new file mode 100644 index 0000000000..575e9fd8cd --- /dev/null +++ b/news/5173.bugfix @@ -0,0 +1 @@ +fix flaky cypress in blocks-listing.js @nileshgulia1 \ No newline at end of file