kibana/x-pack/test/screenshot_creation/apps/ml_docs/index.ts
Robert Oskamp 1d4dce3ba9
[ML] Add initial docs screenshot generation (#121495)
This PR utilizes the functional test runner to walk through the UI and take a couple screenshots for use in the documentation.
2021-12-20 15:44:58 +01:00

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'));
});
}