diff --git a/x-pack/test/api_integration/apis/ml/system/capabilities.ts b/x-pack/test/api_integration/apis/ml/system/capabilities.ts index 621544d818312..116280e0a4dd1 100644 --- a/x-pack/test/api_integration/apis/ml/system/capabilities.ts +++ b/x-pack/test/api_integration/apis/ml/system/capabilities.ts @@ -28,7 +28,7 @@ export default ({ getService }: FtrProviderContext) => { describe('ml_capabilities', () => { describe('get capabilities', function () { - it('should have the right number of capabilities', async () => { + it('should be enabled in space', async () => { const { mlFeatureEnabledInSpace } = await runRequest(USER.ML_POWERUSER); expect(mlFeatureEnabledInSpace).to.eql(true); }); diff --git a/x-pack/test/api_integration/apis/ml/system/space_capabilities.ts b/x-pack/test/api_integration/apis/ml/system/space_capabilities.ts index d9c60907a5764..0a39eae09d24e 100644 --- a/x-pack/test/api_integration/apis/ml/system/space_capabilities.ts +++ b/x-pack/test/api_integration/apis/ml/system/space_capabilities.ts @@ -44,11 +44,11 @@ export default ({ getService }: FtrProviderContext) => { }); describe('get capabilities', function () { - it('should have the right number of capabilities - space with ML - space with ML', async () => { + it('should be enabled in space - space with ML', async () => { const { mlFeatureEnabledInSpace } = await runRequest(USER.ML_POWERUSER, idSpaceWithMl); expect(mlFeatureEnabledInSpace).to.eql(true); }); - it('should have the right number of capabilities - space without ML', async () => { + it('should not be enabled in space - space without ML', async () => { const { mlFeatureEnabledInSpace } = await runRequest(USER.ML_POWERUSER, idSpaceNoMl); expect(mlFeatureEnabledInSpace).to.eql(false); });