import expect from '@kbn/expect' ; import { FtrProviderContext } from '../ftr_provider_context' ; export default function ( { getPageObjects } ) { const PageObjects = getPageObjects ( [ 'common' , 'security' , 'banners' ] ) ; describe ( 'global pages' , ( ) => { it ( 'displays the global banner on the login page' , async ( ) => { await PageObjects . common . navigateToApp ( 'login' ) ; expect ( await PageObjects . banners . isTopBannerVisible ( ) ) . to . eql ( true ) ; expect ( await PageObjects . banners . getTopBannerText ( ) ) . to . eql ( 'global banner text' ) ; } ) ; } ) ; }