import expect from '@kbn/expect' ; import { FtrProviderContext } from '../../../functional/ftr_provider_context' ; export default function ( { getService , getPageObjects } ) { describe ( 'check filebeat' , function ( ) { const retry = getService ( 'retry' ) ; const PageObjects = getPageObjects ( [ 'common' , 'discover' , 'timePicker' ] ) ; it ( 'filebeat- should have hit count GT 0' , async function ( ) { await PageObjects . common . navigateToApp ( 'discover' , { insertTimestamp : false } ) ; await PageObjects . discover . selectIndexPattern ( 'filebeat-*' ) ; await PageObjects . timePicker . setCommonlyUsedTime ( 'Last_30 days' ) ; await retry . try ( async ( ) => { const hitCount = parseInt ( await PageObjects . discover . getHitCount ( ) , 10 ) ; expect ( hitCount ) . to . be . greaterThan ( 0 ) ; } ) ; } ) ; } ) ; }