105 lines
3.9 KiB
TypeScript
105 lines
3.9 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
|
|
|
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
|
const browser = getService('browser');
|
|
const log = getService('log');
|
|
const esArchiver = getService('esArchiver');
|
|
const kibanaServer = getService('kibanaServer');
|
|
|
|
describe('visualize app', () => {
|
|
before(async () => {
|
|
log.debug('Starting visualize before method');
|
|
await browser.setWindowSize(1280, 800);
|
|
await esArchiver.load('test/functional/fixtures/es_archiver/empty_kibana');
|
|
|
|
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
|
|
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/long_window_logstash');
|
|
});
|
|
|
|
// TODO: Remove when vislib is removed
|
|
describe('new charts library visualize ciGroup7', function () {
|
|
this.tags('ciGroup7');
|
|
|
|
before(async () => {
|
|
await kibanaServer.uiSettings.update({
|
|
'visualization:visualize:legacyPieChartsLibrary': false,
|
|
});
|
|
await browser.refresh();
|
|
});
|
|
|
|
after(async () => {
|
|
await kibanaServer.uiSettings.update({
|
|
'visualization:visualize:legacyPieChartsLibrary': true,
|
|
});
|
|
await browser.refresh();
|
|
});
|
|
|
|
// Test replaced vislib chart types
|
|
loadTestFile(require.resolve('./_area_chart'));
|
|
loadTestFile(require.resolve('./_line_chart_split_series'));
|
|
loadTestFile(require.resolve('./_line_chart_split_chart'));
|
|
loadTestFile(require.resolve('./_point_series_options'));
|
|
loadTestFile(require.resolve('./_vertical_bar_chart'));
|
|
loadTestFile(require.resolve('./_vertical_bar_chart_nontimeindex'));
|
|
loadTestFile(require.resolve('./_pie_chart'));
|
|
loadTestFile(require.resolve('./_timelion'));
|
|
});
|
|
|
|
describe('visualize ciGroup9', function () {
|
|
this.tags('ciGroup9');
|
|
|
|
loadTestFile(require.resolve('./_embedding_chart'));
|
|
loadTestFile(require.resolve('./_data_table'));
|
|
loadTestFile(require.resolve('./_data_table_nontimeindex'));
|
|
loadTestFile(require.resolve('./_data_table_notimeindex_filters'));
|
|
loadTestFile(require.resolve('./_chart_types'));
|
|
});
|
|
|
|
describe('visualize ciGroup10', function () {
|
|
this.tags('ciGroup10');
|
|
|
|
loadTestFile(require.resolve('./_inspector'));
|
|
loadTestFile(require.resolve('./_experimental_vis'));
|
|
loadTestFile(require.resolve('./_gauge_chart'));
|
|
loadTestFile(require.resolve('./_heatmap_chart'));
|
|
loadTestFile(require.resolve('./_histogram_request_start'));
|
|
loadTestFile(require.resolve('./_metric_chart'));
|
|
});
|
|
|
|
describe('visualize ciGroup4', function () {
|
|
this.tags('ciGroup4');
|
|
|
|
loadTestFile(require.resolve('./_pie_chart'));
|
|
loadTestFile(require.resolve('./_shared_item'));
|
|
loadTestFile(require.resolve('./_lab_mode'));
|
|
loadTestFile(require.resolve('./_linked_saved_searches'));
|
|
loadTestFile(require.resolve('./_visualize_listing'));
|
|
loadTestFile(require.resolve('./_add_to_dashboard.ts'));
|
|
});
|
|
|
|
describe('visualize ciGroup8', function () {
|
|
this.tags('ciGroup8');
|
|
|
|
loadTestFile(require.resolve('./_tsvb_chart'));
|
|
});
|
|
|
|
describe('visualize ciGroup11', function () {
|
|
this.tags('ciGroup11');
|
|
|
|
loadTestFile(require.resolve('./_tag_cloud'));
|
|
loadTestFile(require.resolve('./_tsvb_time_series'));
|
|
loadTestFile(require.resolve('./_tsvb_markdown'));
|
|
loadTestFile(require.resolve('./_tsvb_table'));
|
|
loadTestFile(require.resolve('./_vega_chart'));
|
|
});
|
|
});
|
|
}
|