import { FtrProviderContext } from '../ftr_provider_context' ; import { INTEGRATIONS_PLUGIN_ID } from '../../../plugins/fleet/common' ; import { pagePathGetters } from '../../../plugins/fleet/public/constants/page_paths' ; export function FleetIntegrations ( { getService , getPageObjects } ) { const pageObjects = getPageObjects ( [ 'common' ] ) ; const testSubjects = getService ( 'testSubjects' ) ; return { async navigateToIntegrationDetails ( pkgkey ) { await pageObjects . common . navigateToUrlWithBrowserHistory ( INTEGRATIONS_PLUGIN_ID , pagePathGetters . integration_details_overview ( { pkgkey } ) [ 1 ] ) ; } , async integrationDetailCustomTabExistsOrFail ( ) { await testSubjects . existOrFail ( 'tab-custom' ) ; } , async findIntegrationDetailCustomTab ( ) { return await testSubjects . find ( 'tab-custom' ) ; } , } ; }