From f284def4bebeb996f924f1eb8e8db191f4a7406f Mon Sep 17 00:00:00 2001 From: Rashmi P Date: Thu, 7 May 2020 15:09:17 +0000 Subject: [PATCH] Update commands.js --- app/client/cypress/support/commands.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/client/cypress/support/commands.js b/app/client/cypress/support/commands.js index da7bd469f8..619144327a 100644 --- a/app/client/cypress/support/commands.js +++ b/app/client/cypress/support/commands.js @@ -18,8 +18,13 @@ Cypress.Commands.add("CreateApp", appname => { Cypress.Commands.add("DeleteApp", appName => { cy.get(commonlocators.homeIcon).click({ force: true }); + cy.wait("@applications").should( + "have.nested.property", + "response.body.responseMeta.status", + 200, + ); cy.get(homePage.searchInput).type(appName); - cy.wait(2000); + cy.wait(2000) cy.get(homePage.appMoreIcon) .first() .click({ force: true });