Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use global tenant in vis-builder tests #1207

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: Area Chart', () => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
cy.deleteIndex(VB_INDEX_ID);
cy.bulkUploadDocs(VB_PATH_INDEX_DATA);
cy.importSavedObjects(VB_PATH_SO_DATA);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading