diff --git a/cypress/integration/common/dashboard_sample_data_spec.js b/cypress/integration/common/dashboard_sample_data_spec.js index 7d7afa310..1ff84814e 100644 --- a/cypress/integration/common/dashboard_sample_data_spec.js +++ b/cypress/integration/common/dashboard_sample_data_spec.js @@ -7,6 +7,7 @@ import { CommonUI, MiscUtils, } from '@opensearch-dashboards-test/opensearch-dashboards-test-library'; +import { CURRENT_TENANT } from '../../utils/commands'; /** * dashboard_sample_data test suite description: @@ -22,7 +23,9 @@ export function dashboardSanityTests() { const path = baseURL.pathname.replace(/\/$/, ''); describe('dashboard sample data validation', () => { - before(() => {}); + before(() => { + CURRENT_TENANT.newTenant = 'global'; + }); after(() => {}); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/basic.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/basic.spec.js index f2d822d23..3c03693b2 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/basic.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/basic.spec.js @@ -13,6 +13,7 @@ import { TABLE_VIS_APP_PATH, TABLE_VIS_TYPE, } from '../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../utils/commands'; /** * Basic test suite description: @@ -25,6 +26,7 @@ import { describe('table visualization basic functions', () => { before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.deleteIndex(TABLE_INDEX_ID); cy.deleteIndexPattern(TABLE_INDEX_PATTERN); cy.bulkUploadDocs(TABLE_PATH_INDEX_DATA); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/data.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/data.spec.js index 7f3f8aa54..b49940a09 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/data.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/data.spec.js @@ -16,6 +16,7 @@ import { TABLE_INDEX_END_TIME, toTestId, } from '../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../utils/commands'; const commonUI = new CommonUI(cy); @@ -24,6 +25,7 @@ const commonUI = new CommonUI(cy); describe('table visualization data', () => { before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.deleteIndex(TABLE_INDEX_ID); cy.deleteIndexPattern(TABLE_INDEX_PATTERN); cy.bulkUploadDocs(TABLE_PATH_INDEX_DATA); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/embed.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/embed.spec.js index 071a5b67f..d188cdf0e 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/embed.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/embed.spec.js @@ -16,6 +16,7 @@ import { TABLE_INDEX_END_TIME, toTestId, } from '../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../utils/commands'; const commonUI = new CommonUI(cy); @@ -56,6 +57,7 @@ describe('table visualization in embedded mode', () => { }; before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.deleteIndex(TABLE_INDEX_ID); cy.deleteIndexPattern(TABLE_INDEX_PATTERN); cy.bulkUploadDocs(TABLE_PATH_INDEX_DATA); diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/options.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/options.spec.js index e7b9575e6..c3ec93848 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/options.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_table/options.spec.js @@ -15,9 +15,11 @@ import { TABLE_INDEX_END_TIME, toTestId, } from '../../../../../utils/constants'; +import { CURRENT_TENANT } from '../../../../../utils/commands'; describe('Table visualization options', () => { before(() => { + CURRENT_TENANT.newTenant = 'global'; cy.deleteIndex(TABLE_INDEX_ID); cy.deleteIndexPattern(TABLE_INDEX_PATTERN); cy.bulkUploadDocs(TABLE_PATH_INDEX_DATA);