test: Cypress (#24586)

## Description
- This PR adds the No Error toast to NavigateBacktoEditor() which
sometimes results in Edit page not being load in CI runs
This commit is contained in:
Aishwarya-U-R 2023-06-18 17:15:26 +05:30 committed by GitHub
parent 2667e0b8f0
commit 99f6e2cf29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,6 +92,9 @@ export class DeployMode {
this.agHelper.GetNClick(this.locator._backToEditor, 0, true);
this.agHelper.Sleep(2000);
localStorage.setItem("inDeployedMode", "false");
this.agHelper.AssertElementAbsence(
this.locator._specificToast("There was an unexpcted error"),
); //Assert that is not error toast in Edit mode when navigating back from Deploy mode
this.assertHelper.AssertDocumentReady();
this.assertHelper.AssertNetworkStatus("@getWorkspace");
this.agHelper.AssertElementVisible(this.locator._dropHere); //Assert if canvas is visible after Navigating back!