Update commands.js

This commit is contained in:
Rashmi P 2020-05-08 09:26:03 +00:00
parent 1d8239439e
commit 1527067fac

View File

@ -18,13 +18,11 @@ 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("@applications");
cy.get(homePage.searchInput)
.focus()
.type(appName);
cy.wait(2000);
cy.get(homePage.appMoreIcon)
.first()
.click({ force: true });