import expect from '@kbn/expect' ; import { FtrProviderContext } from '../../ftr_provider_context' ; export default ( { getPageObjects , getService } ) => { const pageObjects = getPageObjects ( [ 'common' , 'remoteClusters' ] ) ; const security = getService ( 'security' ) ; describe ( 'Home page' , function ( ) { before ( async ( ) => { await security . testUser . setRoles ( [ 'global_ccr_role' ] ) ; await pageObjects . common . navigateToApp ( 'remoteClusters' ) ; } ) ; after ( async ( ) => { await security . testUser . restoreDefaults ( ) ; } ) ; it ( 'Loads the app' , async ( ) => { const remoteClusterButton = await pageObjects . remoteClusters . remoteClusterCreateButton ( ) ; expect ( await remoteClusterButton . isDisplayed ( ) ) . to . be ( true ) ; } ) ; } ) ; } ;