diff --git a/cypress/integration/plugins/gantt-chart-dashboards/gantt_ui.spec.js b/cypress/integration/plugins/gantt-chart-dashboards/gantt_ui.spec.js index be475be68..291bb4832 100644 --- a/cypress/integration/plugins/gantt-chart-dashboards/gantt_ui.spec.js +++ b/cypress/integration/plugins/gantt-chart-dashboards/gantt_ui.spec.js @@ -20,7 +20,7 @@ const DEFAULT_SIZE = 10; describe('Dump test data', () => { it('Indexes test data for gantt chart', () => { - CURRENT_TENANT.newTenant = 'global'; + CURRENT_TENANT.newTenant = 'private'; const dumpDataSet = (ndjson, index) => cy.request({ method: 'POST', @@ -56,9 +56,6 @@ describe('Dump test data', () => { }); describe('Save a gantt chart', { defaultCommandTimeout: 20000 }, () => { - before(() => { - CURRENT_TENANT.newTenant = 'global'; - }); beforeEach(() => { cy.visit(`${BASE_PATH}/app/visualize#`); }); @@ -83,10 +80,8 @@ describe( 'Render and configure a gantt chart', { defaultCommandTimeout: 20000 }, () => { - before(() => { - CURRENT_TENANT.newTenant = 'global'; - }); beforeEach(() => { + CURRENT_TENANT.newTenant = 'private'; cy.visit(`${BASE_PATH}/app/visualize#`); cy.get('.euiFieldSearch').focus().type(GANTT_VIS_NAME); cy.contains(GANTT_VIS_NAME).click({ force: true }); @@ -125,9 +120,6 @@ describe( ); describe('Configure panel settings', { defaultCommandTimeout: 20000 }, () => { - before(() => { - CURRENT_TENANT.newTenant = 'global'; - }); beforeEach(() => { cy.visit(`${BASE_PATH}/app/visualize#`); cy.get('.euiFieldSearch').focus().type(GANTT_VIS_NAME); @@ -251,9 +243,6 @@ describe( 'Add gantt chart to dashboard', { defaultCommandTimeout: 20000 }, () => { - before(() => { - CURRENT_TENANT.newTenant = 'global'; - }); it('Adds gantt chart to dashboard', () => { cy.visit(`${BASE_PATH}/app/dashboards#/create`); cy.contains('Add an existing').click({ force: true });