import { PluginFunctionalProviderContext } from 'test/plugin_functional/services' ; export default function ( { getService , loadTestFile } ) { const esArchiver = getService ( 'esArchiver' ) ; const kibanaServer = getService ( 'kibanaServer' ) ; describe ( 'embedded Lens examples' , function ( ) { before ( async ( ) => { await esArchiver . load ( 'x-pack/test/functional/es_archives/logstash_functional' ) ; await kibanaServer . importExport . load ( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ) ; await kibanaServer . uiSettings . update ( { defaultIndex : 'logstash-*' , } ) ; } ) ; after ( async ( ) => { await esArchiver . unload ( 'x-pack/test/functional/es_archives/logstash_functional' ) ; await kibanaServer . importExport . unload ( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ) ; } ) ; describe ( '' , function ( ) { this . tags ( [ 'ciGroup4' , 'skipFirefox' ] ) ; loadTestFile ( require . resolve ( './embedded_example' ) ) ; } ) ; } ) ; }