import { FtrProviderContext } from '../ftr_provider_context' ; import { PLUGIN_ID } from '../../../plugins/fleet/common' ; import { pagePathGetters } from '../../../plugins/fleet/public/constants/page_paths' ; export function AgentsPage ( { getService , getPageObjects } ) { const pageObjects = getPageObjects ( [ 'common' ] ) ; const testSubjects = getService ( 'testSubjects' ) ; return { async navigateToAgentsPage ( ) { await pageObjects . common . navigateToApp ( PLUGIN_ID , { hash : pagePathGetters . base ( ) [ 1 ] , } ) ; } , async agentsTabExistsOrFail ( ) { await testSubjects . existOrFail ( 'fleet-agents-tab' ) ; } , async agentPoliciesTabExistsOrFail ( ) { await testSubjects . existOrFail ( 'fleet-agent-policies-tab' ) ; } , async enrollmentTokensTabExistsOrFail ( ) { await testSubjects . existOrFail ( 'fleet-enrollment-tokens-tab' ) ; } , async dataStreamsTabExistsOrFail ( ) { await testSubjects . existOrFail ( 'fleet-datastreams-tab' ) ; } , } ; }