Update commands.js
This commit is contained in:
parent
1f21c0cfca
commit
f284def4be
|
|
@ -18,8 +18,13 @@ Cypress.Commands.add("CreateApp", appname => {
|
||||||
|
|
||||||
Cypress.Commands.add("DeleteApp", appName => {
|
Cypress.Commands.add("DeleteApp", appName => {
|
||||||
cy.get(commonlocators.homeIcon).click({ force: true });
|
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.get(homePage.searchInput).type(appName);
|
||||||
cy.wait(2000);
|
cy.wait(2000)
|
||||||
cy.get(homePage.appMoreIcon)
|
cy.get(homePage.appMoreIcon)
|
||||||
.first()
|
.first()
|
||||||
.click({ force: true });
|
.click({ force: true });
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user