import expect from '@kbn/expect' ; import { FtrProviderContext } from '../../ftr_provider_context' ; export default function ( { getService , getPageObjects } ) { const browser = getService ( 'browser' ) ; const esArchiver = getService ( 'esArchiver' ) ; const PageObjects = getPageObjects ( [ 'common' , 'home' ] ) ; const kibanaServer = getService ( 'kibanaServer' ) ; describe . skip ( 'Welcome interstitial' , ( ) => { before ( async ( ) => { await PageObjects . common . navigateToUrl ( 'home' , undefined ) ; await browser . clearLocalStorage ( ) ; await esArchiver . emptyKibanaIndex ( ) ; } ) ; /**
         * When we run this against a Cloud cluster, we also test the case where Fleet server is running
         * and ingesting elastic_agent data.
         */ it ( 'is displayed on a fresh install with Fleet setup executed' , async ( ) => { await kibanaServer . request ( { path : '/api/fleet/setup' , method : 'POST' } ) ; const metricsIndexPattern = await kibanaServer . savedObjects . get ( { type : 'index-pattern' , id : 'metrics-*' , } ) ; expect ( metricsIndexPattern ?. attributes . title ) . to . eql ( 'metrics-*' ) ; await PageObjects . common . navigateToUrl ( 'home' , undefined , { disableWelcomePrompt : false } ) ; expect ( await PageObjects . home . isWelcomeInterstitialDisplayed ( ) ) . to . be ( true ) ; } ) ; it ( 'is still displayed after a Fleet server is enrolled with agent metrics' ) ; it ( 'is not displayed after an agent is enrolled with system metrics' ) ; it ( 'is not displayed after a standalone agent is enrolled with system metrics' ) ; } ) ; }