import { FtrProviderContext } from '../../common/ftr_provider_context' ; import { FeaturesService } from '../../common/services' ; import { SpaceScenarios } from '../scenarios' ; export default function uiCapabilitesTests ( { loadTestFile , getService } ) { const spacesService = getService ( 'spaces' ) ; const featuresService = getService ( 'features' ) ; describe ( 'ui capabilities' , function ( ) { this . tags ( 'ciGroup9' ) ; before ( async ( ) => { const features = await featuresService . get ( { ignoreValidLicenses : true } ) ; for ( const space of SpaceScenarios ) { const disabledFeatures = space . disabledFeatures === '*' ? Object . keys ( features ) : space . disabledFeatures ; await spacesService . create ( { ... space , disabledFeatures , } ) ; } } ) ; after ( async ( ) => { for ( const space of SpaceScenarios ) { await spacesService . delete ( space . id ) ; } } ) ; loadTestFile ( require . resolve ( './catalogue' ) ) ; loadTestFile ( require . resolve ( './foo' ) ) ; loadTestFile ( require . resolve ( './nav_links' ) ) ; } ) ; }