@@ -8,7 +8,7 @@ import expect from '@kbn/expect';
88import { FtrProviderContext } from '../../ftr_provider_context' ;
99
1010export default ( { getPageObjects, getService } : FtrProviderContext ) => {
11- const pageObjects = getPageObjects ( [ 'common' , 'endpoint' ] ) ;
11+ const pageObjects = getPageObjects ( [ 'common' , 'endpoint' , 'header' ] ) ;
1212 const esArchiver = getService ( 'esArchiver' ) ;
1313 const testSubjects = getService ( 'testSubjects' ) ;
1414
@@ -18,6 +18,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
1818 before ( async ( ) => {
1919 await esArchiver . load ( 'endpoint/metadata/api_feature' ) ;
2020 await pageObjects . common . navigateToUrlWithBrowserHistory ( 'endpoint' , '/hosts' ) ;
21+ await pageObjects . header . waitUntilLoadingHasFinished ( ) ;
2122 } ) ;
2223
2324 it ( 'finds title' , async ( ) => {
@@ -114,6 +115,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
114115 // clear out the data and reload the page
115116 await esArchiver . unload ( 'endpoint/metadata/api_feature' ) ;
116117 await pageObjects . common . navigateToUrlWithBrowserHistory ( 'endpoint' , '/hosts' ) ;
118+ await pageObjects . header . waitUntilLoadingHasFinished ( ) ;
117119 } ) ;
118120 after ( async ( ) => {
119121 // reload the data so the other tests continue to pass
@@ -135,6 +137,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
135137 '/hosts' ,
136138 'selected_host=fc0ff548-feba-41b6-8367-65e8790d0eaf'
137139 ) ;
140+ await pageObjects . header . waitUntilLoadingHasFinished ( ) ;
138141 } ) ;
139142
140143 it ( 'shows a flyout' , async ( ) => {
0 commit comments