locator updated (#570)

* locator updated

* updated action type

* Updated test
This commit is contained in:
NandanAnantharamu 2020-09-18 11:47:51 +05:30 committed by GitHub
parent 0b87c7431b
commit c51ec0e59b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 10 deletions

View File

@ -99,13 +99,7 @@ describe("Create new org and share with a user", function() {
Cypress.env("TESTUSERNAME2"),
homePage.viewerRole,
);
cy.navigateToOrgSettings(orgid);
cy.get(homePage.emailList).then(function($list) {
expect($list).to.have.length(3);
expect($list.eq(0)).to.contain(Cypress.env("USERNAME"));
expect($list.eq(1)).to.contain(Cypress.env("TESTUSERNAME1"));
expect($list.eq(2)).to.contain(Cypress.env("TESTUSERNAME2"));
});
cy.LogOut();
});
it("login as Org owner and delete App ", function() {

View File

@ -47,7 +47,8 @@ Cypress.Commands.add("navigateToOrgSettings", orgName => {
cy.get(homePage.orgList.concat(orgName).concat(")"))
.scrollIntoView()
.should("be.visible");
cy.get(".t--org-name a")
cy.get(".t--org-name span")
.contains(orgName)
.first()
.click({ force: true });
cy.xpath(homePage.MemberSettings).click({ force: true });
@ -91,7 +92,8 @@ Cypress.Commands.add("deleteUserFromOrg", (orgName, email) => {
cy.get(homePage.orgList.concat(orgName).concat(")"))
.scrollIntoView()
.should("be.visible");
cy.get(".t--org-name a")
cy.get(".t--org-name span")
.contains(orgName)
.first()
.click({ force: true });
cy.xpath(homePage.MemberSettings).click({ force: true });
@ -117,7 +119,8 @@ Cypress.Commands.add("updateUserRoleForOrg", (orgName, email, role) => {
cy.get(homePage.orgList.concat(orgName).concat(")"))
.scrollIntoView()
.should("be.visible");
cy.get(".t--org-name a")
cy.get(".t--org-name span")
.contains(orgName)
.first()
.click({ force: true });
cy.xpath(homePage.MemberSettings).click({ force: true });