From db89dddbad51e1b969e4a67b8b7937db5f4a0f0e Mon Sep 17 00:00:00 2001 From: NandanAnantharamu <67676905+NandanAnantharamu@users.noreply.github.com> Date: Thu, 17 Dec 2020 14:16:54 +0530 Subject: [PATCH] Organization test split into 2 parts (#2247) Co-authored-by: nandan.anantharamu --- .../CreateAppWithSameName_spec.js | 20 +++++++++++++++++++ .../CreateDuplicateAppWithinOrg_spec.js | 7 ++----- 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateAppWithSameName_spec.js diff --git a/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateAppWithSameName_spec.js b/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateAppWithSameName_spec.js new file mode 100644 index 0000000000..7d0404578c --- /dev/null +++ b/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateAppWithSameName_spec.js @@ -0,0 +1,20 @@ +/// + +describe("Create org and a new app / delete and recreate app", function() { + let orgid; + let appid; + + it("create app within an org and delete and re-create another app with same name", function() { + cy.NavigateToHome(); + cy.generateUUID().then(uid => { + orgid = uid; + appid = uid; + localStorage.setItem("OrgName", orgid); + cy.createOrg(orgid); + cy.CreateAppForOrg(orgid, appid); + cy.DeleteAppByApi(); + cy.NavigateToHome(); + cy.CreateAppForOrg(orgid, appid); + }); + }); +}); diff --git a/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateDuplicateAppWithinOrg_spec.js b/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateDuplicateAppWithinOrg_spec.js index 92d16d5d54..41692b1e3c 100644 --- a/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateDuplicateAppWithinOrg_spec.js +++ b/app/client/cypress/integration/Smoke_TestSuite/OrganisationTests/CreateDuplicateAppWithinOrg_spec.js @@ -1,10 +1,10 @@ /// -describe("Create new org and an app within the same", function () { +describe("Create new org and an app within the same", function() { let orgid; let appid; - it("create multiple apps and validate", function () { + it("create multiple apps and validate", function() { cy.NavigateToHome(); cy.generateUUID().then(uid => { orgid = uid; @@ -12,9 +12,6 @@ describe("Create new org and an app within the same", function () { localStorage.setItem("OrgName", orgid); cy.createOrg(orgid); cy.CreateAppForOrg(orgid, appid); - cy.DeleteAppByApi(); - cy.NavigateToHome(); - cy.CreateAppForOrg(orgid, appid); cy.NavigateToHome(); cy.CreateApp(appid); });