Skip to content

Commit

Permalink
Add wait commands to flaky block-listing tests (#5753)
Browse files Browse the repository at this point in the history
  • Loading branch information
ichim-david committed Feb 12, 2024
1 parent 9865206 commit 5a3af10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/tests/core/blocks/blocks-listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -1128,10 +1128,11 @@ describe('Listing Block Tests', () => {
cy.url().should('not.include', '=3');
//test back button
cy.navigate('/my-page');
cy.wait('@content');
cy.wait(1000);
cy.get('.ui.pagination.menu a[value="2"]').first().click({ force: true });
cy.get('.ui.pagination.menu a[value="3"]').first().click({ force: true });
cy.go(-1);
cy.wait(1000);
cy.isInHTML({ parent: '.listing-item', content: 'My Folder 3' });
cy.url().should('not.include', '=3');
cy.go(-1);
Expand Down
1 change: 1 addition & 0 deletions news/5753.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add extra wait calls to listing block tests to avoid sporadic failures. @ichim-david

0 comments on commit 5a3af10

Please sign in to comment.