Skip to content

Commit

Permalink
try global tenant in before hook
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Li <[email protected]>
  • Loading branch information
sejli committed Mar 28, 2024
1 parent b987d13 commit d4eebc5
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ describe('Dump test data', () => {
});

describe('Save a gantt chart', { defaultCommandTimeout: 20000 }, () => {
beforeEach(() => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
});
beforeEach(() => {
cy.visit(`${BASE_PATH}/app/visualize#`);
});

Expand All @@ -81,8 +83,10 @@ describe(
'Render and configure a gantt chart',
{ defaultCommandTimeout: 20000 },
() => {
beforeEach(() => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
});
beforeEach(() => {
cy.visit(`${BASE_PATH}/app/visualize#`);
cy.get('.euiFieldSearch').focus().type(GANTT_VIS_NAME);
cy.contains(GANTT_VIS_NAME).click({ force: true });
Expand Down Expand Up @@ -121,8 +125,10 @@ describe(
);

describe('Configure panel settings', { defaultCommandTimeout: 20000 }, () => {
beforeEach(() => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
});
beforeEach(() => {
cy.visit(`${BASE_PATH}/app/visualize#`);
cy.get('.euiFieldSearch').focus().type(GANTT_VIS_NAME);
cy.contains(GANTT_VIS_NAME).click({ force: true });
Expand Down Expand Up @@ -245,6 +251,9 @@ 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 });
Expand Down

0 comments on commit d4eebc5

Please sign in to comment.