test: wait for toast immediately after delete

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2022-09-26 14:16:38 +05:30
committed by braks
parent a89358a0dc
commit 92d121e16e

View File

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