Skip to content

Commit

Permalink
Add wait commands to block-listing tests
Browse files Browse the repository at this point in the history
- Using only wait('@content') mean that every x times the assert
  command failed due to running too quick before proper page load
  • Loading branch information
ichim-david committed Feb 12, 2024
1 parent b5872c7 commit cb43ef0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1100,10 +1100,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 packages/volto/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 cb43ef0

Please sign in to comment.