Skip to content

Commit

Permalink
Fix flaky cypress (#5177)
Browse files Browse the repository at this point in the history
Co-authored-by: Víctor Fernández de Alba <[email protected]>
  • Loading branch information
nileshgulia1 and sneridagh authored Sep 13, 2023
1 parent 71bd33b commit 897c119
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cypress/tests/core/blocks/blocks-listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions news/5173.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix flaky cypress in blocks-listing.js @nileshgulia1

0 comments on commit 897c119

Please sign in to comment.