From c51ec0e59bc66d28ba662280640619bcd8736cfe Mon Sep 17 00:00:00 2001 From: NandanAnantharamu <67676905+NandanAnantharamu@users.noreply.github.com> Date: Fri, 18 Sep 2020 11:47:51 +0530 Subject: [PATCH] locator updated (#570) * locator updated * updated action type * Updated test --- .../OrganisationTests/CreateOrgTests_spec.js | 8 +------- app/client/cypress/support/commands.js | 9 ++++++--- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateOrgTests_spec.js b/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateOrgTests_spec.js index 80e70070be..4f11d6e725 100644 --- a/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateOrgTests_spec.js +++ b/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateOrgTests_spec.js @@ -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() { diff --git a/app/client/cypress/support/commands.js b/app/client/cypress/support/commands.js index 467c865821..be9e117a53 100644 --- a/app/client/cypress/support/commands.js +++ b/app/client/cypress/support/commands.js @@ -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 });