Update commands.js

This commit is contained in:
Rashmi P 2020-05-07 15:09:17 +00:00
parent 1f21c0cfca
commit f284def4be

View File

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