import { FtrProviderContext } from '../ftr_provider_context' ; export default function ( { getService , getPageObjects } ) { const PageObjects = getPageObjects ( [ 'common' , 'security' ] ) ; const testSubjects = getService ( 'testSubjects' ) ; describe ( 'Login' , ( ) => { it ( 'login and navigate to homepage' , async ( ) => { await PageObjects . common . navigateToApp ( 'login' ) ; await testSubjects . existOrFail ( 'loginSubmit' , { timeout : 2000 } ) ; await PageObjects . security . login ( ) ; await testSubjects . existOrFail ( 'homeApp' , { timeout : 2000 } ) ; } ) ; } ) ; }