From 01ca53899e34aa50f7725491c508793a4bd00329 Mon Sep 17 00:00:00 2001 From: Arpit Mohan Date: Thu, 11 Feb 2021 23:50:49 +0530 Subject: [PATCH] Fixing the organization share Cypress test cases (#2993) --- .../Smoke_TestSuite/OrganisationTests/CreateOrgTests_spec.js | 4 +++- .../Smoke_TestSuite/OrganisationTests/ShareAppTests_spec.js | 4 +++- 2 files changed, 6 insertions(+), 2 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 62a13a40a9..62bba8efd1 100644 --- a/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateOrgTests_spec.js +++ b/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateOrgTests_spec.js @@ -30,7 +30,9 @@ describe("Create new org and share with a user", function() { cy.get(homePage.searchInput).type(appid); cy.wait(2000); cy.get(homePage.appsContainer).contains(orgid); - cy.xpath(homePage.ShareBtn).should("not.exist"); + cy.xpath(homePage.ShareBtn) + .first() + .should("be.visible"); cy.get(homePage.applicationCard) .first() .trigger("mouseover"); diff --git a/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/ShareAppTests_spec.js b/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/ShareAppTests_spec.js index 950b2c2454..a0bb635e1a 100644 --- a/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/ShareAppTests_spec.js +++ b/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/ShareAppTests_spec.js @@ -33,7 +33,9 @@ describe("Create new org and share with a user", function() { cy.get(homePage.searchInput).type(appid); cy.wait(2000); cy.get(homePage.appsContainer).contains(orgid); - cy.xpath(homePage.ShareBtn).should("not.exist"); + cy.xpath(homePage.ShareBtn) + .first() + .should("be.visible"); cy.get(homePage.applicationCard).trigger("mouseover"); cy.get(homePage.appEditIcon).should("not.exist"); cy.launchApp(appid);