import { FtrProviderContext } from '../ftr_provider_context' ; import { TestSubjects } from '../../../../test/functional/services/common' ; import { WebElementWrapper } from '../../../../test/functional/services/lib/web_element_wrapper' ; export function AppSearchPageProvider ( { getService , getPageObjects } ) { const PageObjects = getPageObjects ( [ 'common' ] ) ; const testSubjects = getService ( 'testSubjects' ) as TestSubjects ; return { async navigateToPage ( ) { return await PageObjects . common . navigateToApp ( 'enterprise_search/app_search' ) ; } , async getEngineLinks ( ) { const engines = await testSubjects . find ( 'appSearchEngines' ) ; return await testSubjects . findAllDescendant ( 'EngineNameLink' , engines ) ; } , async getMetaEngineLinks ( ) { const metaEngines = await testSubjects . find ( 'appSearchMetaEngines' ) ; return await testSubjects . findAllDescendant ( 'EngineNameLink' , metaEngines ) ; } , } ; }