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 });