@@ -25,6 +25,7 @@ import { FtrProviderContext } from '../ftr_provider_context';
2525export function SettingsPageProvider ( { getService, getPageObjects } : FtrProviderContext ) {
2626 const log = getService ( 'log' ) ;
2727 const retry = getService ( 'retry' ) ;
28+ const config = getService ( 'config' ) ;
2829 const browser = getService ( 'browser' ) ;
2930 const find = getService ( 'find' ) ;
3031 const flyout = getService ( 'flyout' ) ;
@@ -298,12 +299,16 @@ export function SettingsPageProvider({ getService, getPageObjects }: FtrProvider
298299 }
299300
300301 async getIndexPatternList ( ) {
301- await testSubjects . existOrFail ( 'indexPatternTable' , { timeout : 5000 } ) ;
302+ await testSubjects . existOrFail ( 'indexPatternTable' , {
303+ timeout : config . get ( 'timeouts.waitForExits' ) * 2 ,
304+ } ) ;
302305 return await find . allByCssSelector ( '[data-test-subj="indexPatternTable"] .euiTable a' ) ;
303306 }
304307
305308 async isIndexPatternListEmpty ( ) {
306- await testSubjects . existOrFail ( 'indexPatternTable' , { timeout : 5000 } ) ;
309+ await testSubjects . existOrFail ( 'indexPatternTable' , {
310+ timeout : config . get ( 'timeouts.waitForExits' ) * 2 ,
311+ } ) ;
307312 const indexPatternList = await this . getIndexPatternList ( ) ;
308313 return indexPatternList . length === 0 ;
309314 }
@@ -629,23 +634,33 @@ export function SettingsPageProvider({ getService, getPageObjects }: FtrProvider
629634 }
630635
631636 async checkImportSucceeded ( ) {
632- await testSubjects . existOrFail ( 'importSavedObjectsSuccess' , { timeout : 20000 } ) ;
637+ await testSubjects . existOrFail ( 'importSavedObjectsSuccess' , {
638+ timeout : config . get ( 'timeouts.waitForExits' ) * 10 ,
639+ } ) ;
633640 }
634641
635642 async checkNoneImported ( ) {
636- await testSubjects . existOrFail ( 'importSavedObjectsSuccessNoneImported' , { timeout : 20000 } ) ;
643+ await testSubjects . existOrFail ( 'importSavedObjectsSuccessNoneImported' , {
644+ timeout : config . get ( 'timeouts.waitForExits' ) * 10 ,
645+ } ) ;
637646 }
638647
639648 async checkImportConflictsWarning ( ) {
640- await testSubjects . existOrFail ( 'importSavedObjectsConflictsWarning' , { timeout : 20000 } ) ;
649+ await testSubjects . existOrFail ( 'importSavedObjectsConflictsWarning' , {
650+ timeout : config . get ( 'timeouts.waitForExits' ) * 10 ,
651+ } ) ;
641652 }
642653
643654 async checkImportLegacyWarning ( ) {
644- await testSubjects . existOrFail ( 'importSavedObjectsLegacyWarning' , { timeout : 20000 } ) ;
655+ await testSubjects . existOrFail ( 'importSavedObjectsLegacyWarning' , {
656+ timeout : config . get ( 'timeouts.waitForExits' ) * 10 ,
657+ } ) ;
645658 }
646659
647660 async checkImportFailedWarning ( ) {
648- await testSubjects . existOrFail ( 'importSavedObjectsFailedWarning' , { timeout : 20000 } ) ;
661+ await testSubjects . existOrFail ( 'importSavedObjectsFailedWarning' , {
662+ timeout : config . get ( 'timeouts.waitForExits' ) * 10 ,
663+ } ) ;
649664 }
650665
651666 async clickImportDone ( ) {
0 commit comments