import expect from '@kbn/expect' ; import { FtrProviderContext } from '../../ftr_provider_context' ; export default ( { getPageObjects , getService } ) => { const pageObjects = getPageObjects ( [ 'common' , 'licenseManagement' ] ) ; const log = getService ( 'log' ) ; describe ( 'Home page' , function ( ) { this . tags ( [ 'skipCloud' ] ) ; before ( async ( ) => { await pageObjects . common . navigateToApp ( 'licenseManagement' ) ; } ) ; it ( 'Loads the app' , async ( ) => { await log . debug ( 'Checking for license header.' ) ; const licenseText = await pageObjects . licenseManagement . licenseText ( ) ; expect ( licenseText ) . to . be ( 'Your Trial license is active' ) ; } ) ; it ( 'Reverts license to basic' , async ( ) => { await pageObjects . licenseManagement . revertLicenseToBasic ( ) ; const licenseText = await pageObjects . licenseManagement . licenseText ( ) ; expect ( licenseText ) . to . be ( 'Your Basic license is active' ) ; } ) ; } ) ; } ;