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