mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
This PR utilizes the functional test runner to walk through the UI and take a couple screenshots for use in the documentation.
35 lines
1.2 KiB
TypeScript
35 lines
1.2 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; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
|
|
|
export const ECOMMERCE_INDEX_PATTERN = 'kibana_sample_data_ecommerce';
|
|
export const FLIGHTS_INDEX_PATTERN = 'kibana_sample_data_flights';
|
|
export const LOGS_INDEX_PATTERN = 'kibana_sample_data_logs';
|
|
|
|
export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
|
const browser = getService('browser');
|
|
const ml = getService('ml');
|
|
|
|
describe('machine learning docs', function () {
|
|
this.tags(['mlqa']);
|
|
|
|
before(async () => {
|
|
await ml.testResources.installAllKibanaSampleData();
|
|
await ml.testResources.setKibanaTimeZoneToUTC();
|
|
await browser.setWindowSize(1920, 1080);
|
|
});
|
|
|
|
after(async () => {
|
|
await ml.testResources.removeAllKibanaSampleData();
|
|
await ml.testResources.resetKibanaTimeZone();
|
|
});
|
|
|
|
loadTestFile(require.resolve('./anomaly_detection'));
|
|
loadTestFile(require.resolve('./data_frame_analytics'));
|
|
});
|
|
}
|