Skip to content

Commit

Permalink
Fixes intermittent error in cypress "Index Text Block" test (#6755)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleybl authored Feb 15, 2025
1 parent 6155ad7 commit 995bdbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/volto/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,13 @@ Cypress.Commands.add('getSlate', (createNewSlate = false) => {
cy.getIfExists(
SLATE_SELECTOR,
() => {
slate = cy.get(SLATE_SELECTOR).last();
slate = cy.get(SLATE_SELECTOR).last().should('be.visible');
},
() => {
slate = cy.get(SLATE_SELECTOR, { timeout: 10000 }).last();
slate = cy
.get(SLATE_SELECTOR, { timeout: 10000 })
.last()
.should('be.visible');
},
);
return slate;
Expand Down
1 change: 1 addition & 0 deletions packages/volto/news/6755.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixes intermittent error in cypress "Index Text Block" test. @wesleybl

0 comments on commit 995bdbd

Please sign in to comment.