Browse Source

test: wait for toast immediately after delete

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3801/head
Raju Udava 2 years ago committed by braks
parent
commit
92d121e16e
  1. 3
      scripts/cypress/support/page_objects/mainPage.js

3
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")

Loading…
Cancel
Save