Organization test split into 2 parts (#2247)

Co-authored-by: nandan.anantharamu <nandan.anantharamu@thoughtspot.com>
This commit is contained in:
NandanAnantharamu 2020-12-17 14:16:54 +05:30 committed by GitHub
parent 4f92ea99ed
commit db89dddbad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 5 deletions

View File

@ -0,0 +1,20 @@
/// <reference types="Cypress" />
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);
});
});
});

View File

@ -1,10 +1,10 @@
/// <reference types="Cypress" />
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);
});