updated locator (#4871)

This commit is contained in:
NandanAnantharamu 2021-06-02 21:23:30 +05:30 committed by GitHub
parent 8c84dcfdec
commit 03b2e7b042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -56,7 +56,7 @@ describe("Create new org and share with a user", function() {
});
it("login as Org owner and update the invited user role to developer", function() {
cy.LoginFromAPI(Cypress.env("USERNAME"), Cypress.env("PASSWORD"));
cy.LogintoApp(Cypress.env("USERNAME"), Cypress.env("PASSWORD"));
cy.visit("/applications");
cy.wait("@applications").should(
"have.nested.property",
@ -95,7 +95,7 @@ describe("Create new org and share with a user", function() {
});
it("login as Org owner and update the invited user role to administrator", function() {
cy.LoginFromAPI(Cypress.env("USERNAME"), Cypress.env("PASSWORD"));
cy.LogintoApp(Cypress.env("USERNAME"), Cypress.env("PASSWORD"));
cy.visit("/applications");
cy.wait("@applications").should(
"have.nested.property",
@ -129,7 +129,7 @@ describe("Create new org and share with a user", function() {
});
it("login as Org owner and delete App ", function() {
cy.LoginFromAPI(Cypress.env("USERNAME"), Cypress.env("PASSWORD"));
cy.LogintoApp(Cypress.env("USERNAME"), Cypress.env("PASSWORD"));
cy.visit("/applications");
cy.wait("@applications").should(
"have.nested.property",

View File

@ -167,7 +167,9 @@ Cypress.Commands.add("deleteUserFromOrg", (orgName, email) => {
"response.body.responseMeta.status",
200,
);
cy.get(homePage.DeleteBtn).click({ force: true });
cy.get(homePage.DeleteBtn)
.last()
.click({ force: true });
cy.xpath(homePage.appHome)
.first()
.should("be.visible")