diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/basic.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/basic.spec.js index 35a03eed6..6ef2c72ba 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/basic.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/basic.spec.js @@ -17,10 +17,12 @@ import { VB_PATH_SO_DATA, VB_SO_TYPE, } from '../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../utils/commands'; if (Cypress.env('VISBUILDER_ENABLED')) { describe('Visualization Builder Base Tests', () => { before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.deleteIndex(VB_INDEX_ID); cy.bulkUploadDocs(VB_PATH_INDEX_DATA); cy.importSavedObjects(VB_PATH_SO_DATA); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/dashboard.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/dashboard.spec.js index 234d4138a..d5962b4a2 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/dashboard.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/dashboard.spec.js @@ -18,10 +18,12 @@ import { VB_METRIC_VIS_TITLE, VB_BAR_VIS_TITLE, } from '../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../utils/commands'; if (Cypress.env('VISBUILDER_ENABLED')) { describe('Visualization Builder Dashboard Tests', () => { before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.deleteIndex(VB_INDEX_ID); cy.bulkUploadDocs(VB_PATH_INDEX_DATA); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/experimental.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/experimental.spec.js index e2d13b89f..f71e8285e 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/experimental.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/experimental.spec.js @@ -11,10 +11,12 @@ import { VB_METRIC_VIS_TITLE, VB_PATH_SO_DATA, } from '../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../utils/commands'; if (Cypress.env('VISBUILDER_ENABLED')) { describe('Visualization Builder Experimental settings', () => { before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.importSavedObjects(VB_PATH_SO_DATA); }); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/area.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/area.spec.js index 30589a8e4..a74b0dfb0 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/area.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/area.spec.js @@ -12,10 +12,12 @@ import { VB_PATH_INDEX_DATA, VB_PATH_SO_DATA, } from '../../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../../utils/commands'; if (Cypress.env('VISBUILDER_ENABLED')) { describe('Vis Builder: Line Chart', () => { before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.deleteIndex(VB_INDEX_ID); cy.bulkUploadDocs(VB_PATH_INDEX_DATA); cy.importSavedObjects(VB_PATH_SO_DATA); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/bar.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/bar.spec.js index a85e45603..930af8226 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/bar.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/bar.spec.js @@ -12,10 +12,12 @@ import { VB_PATH_INDEX_DATA, VB_PATH_SO_DATA, } from '../../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../../utils/commands'; if (Cypress.env('VISBUILDER_ENABLED')) { describe('Vis Builder: Bar Chart', () => { before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.deleteIndex(VB_INDEX_ID); cy.bulkUploadDocs(VB_PATH_INDEX_DATA); cy.importSavedObjects(VB_PATH_SO_DATA); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/line.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/line.spec.js index 08cd6a509..803bee776 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/line.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/line.spec.js @@ -12,10 +12,12 @@ import { VB_PATH_INDEX_DATA, VB_PATH_SO_DATA, } from '../../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../../utils/commands'; if (Cypress.env('VISBUILDER_ENABLED')) { describe('Vis Builder: Line Chart', () => { before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.deleteIndex(VB_INDEX_ID); cy.bulkUploadDocs(VB_PATH_INDEX_DATA); cy.importSavedObjects(VB_PATH_SO_DATA); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/metric.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/metric.spec.js index 52ef8676a..bfd693192 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/metric.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/metric.spec.js @@ -12,10 +12,12 @@ import { VB_PATH_INDEX_DATA, VB_PATH_SO_DATA, } from '../../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../../utils/commands'; if (Cypress.env('VISBUILDER_ENABLED')) { describe('Vis Builder: Metric Chart', () => { before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.deleteIndex(VB_INDEX_ID); cy.bulkUploadDocs(VB_PATH_INDEX_DATA); cy.importSavedObjects(VB_PATH_SO_DATA); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/table.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/table.spec.js index 4abc9d100..3a020c394 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/table.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/vis_types/table.spec.js @@ -12,10 +12,12 @@ import { VB_PATH_INDEX_DATA, VB_PATH_SO_DATA, } from '../../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../../utils/commands'; if (Cypress.env('VISBUILDER_ENABLED')) { describe('Vis Builder: Table Chart', () => { before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.deleteIndex(VB_INDEX_ID); cy.bulkUploadDocs(VB_PATH_INDEX_DATA); cy.importSavedObjects(VB_PATH_SO_DATA);