locator updated (#570)
* locator updated * updated action type * Updated test
This commit is contained in:
parent
0b87c7431b
commit
c51ec0e59b
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user