import { PluginFunctionalProviderContext } from 'test/plugin_functional/services' ; export default function ( { getService , loadTestFile } ) { const esArchiver = getService ( 'esArchiver' ) ; const kibanaServer = getService ( 'kibanaServer' ) ; describe ( 'search examples' , function ( ) { this . tags ( 'ciGroup13' ) ; before ( async ( ) => { await esArchiver . emptyKibanaIndex ( ) ; await esArchiver . loadIfNeeded ( 'x-pack/test/functional/es_archives/logstash_functional' ) ; await kibanaServer . importExport . load ( 'x-pack/test/functional/fixtures/kbn_archiver/lens/lens_basic.json' ) ; } ) ; 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' ) ; } ) ; loadTestFile ( require . resolve ( './search_session_example' ) ) ; loadTestFile ( require . resolve ( './search_example' ) ) ; loadTestFile ( require . resolve ( './search_sessions_cache' ) ) ; loadTestFile ( require . resolve ( './partial_results_example' ) ) ; } ) ; }