import { FtrProviderContext } from '../../ftr_provider_context' ; export default ( { loadTestFile , getService } ) => { const ml = getService ( 'ml' ) ; const esArchiver = getService ( 'esArchiver' ) ; describe ( 'ML app' , function ( ) { this . tags ( [ 'mlqa' , 'skipFirefox' ] ) ; before ( async ( ) => { await ml . securityCommon . createMlRoles ( ) ; await ml . securityCommon . createMlUsers ( ) ; } ) ; after ( async ( ) => { await ml . securityUI . logout ( ) ; await ml . testResources . deleteIndexPatternByTitle ( 'ft_ecommerce' ) ; await esArchiver . unload ( 'x-pack/test/functional/es_archives/ml/ecommerce' ) ; await ml . securityCommon . cleanMlUsers ( ) ; await ml . securityCommon . cleanMlRoles ( ) ; await ml . testResources . resetKibanaTimeZone ( ) ; } ) ; loadTestFile ( require . resolve ( './alert_flyout' ) ) ; } ) ; } ;