diff --git a/scripts/cypress/support/page_objects/mainPage.js b/scripts/cypress/support/page_objects/mainPage.js index 3d2c2b9e58..660edca4cf 100644 --- a/scripts/cypress/support/page_objects/mainPage.js +++ b/scripts/cypress/support/page_objects/mainPage.js @@ -488,11 +488,10 @@ export class _mainPage { // one of the row would contain seggregation header ('other views) if (5 == $tableRow[0].childElementCount) { cy.wrap($tableRow).find(".nc-icon").last().click(); - cy.wait(100); + cy.toastWait("Deleted shared view successfully"); } }) .then(() => { - cy.toastWait("Deleted shared view successfully"); cy.getActiveModal() .find("button.ant-modal-close") .should("exist")