diff --git a/x-pack/test/functional/apps/ml/short_tests/notifications/notification_list.ts b/x-pack/test/functional/apps/ml/short_tests/notifications/notification_list.ts index 30cad369259c3..494b9256cd6d7 100644 --- a/x-pack/test/functional/apps/ml/short_tests/notifications/notification_list.ts +++ b/x-pack/test/functional/apps/ml/short_tests/notifications/notification_list.ts @@ -13,8 +13,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const ml = getService('ml'); const browser = getService('browser'); - // Failing: See https://github.com/elastic/kibana/issues/142248 - describe.skip('Notifications list', function () { + const configs = [ + { jobId: 'fq_001', spaceId: undefined }, + { jobId: 'fq_002', spaceId: 'space1' }, + ]; + + describe('Notifications list', function () { before(async () => { await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote'); await ml.testResources.createIndexPatternIfNeeded('ft_farequote', '@timestamp'); @@ -22,10 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { // Prepare jobs to generate notifications await Promise.all( - [ - { jobId: 'fq_001', spaceId: undefined }, - { jobId: 'fq_002', spaceId: 'space1' }, - ].map(async (v) => { + configs.map(async (v) => { const datafeedConfig = ml.commonConfig.getADFqDatafeedConfig(v.jobId); await ml.api.createAnomalyDetectionJob( @@ -45,7 +46,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); after(async () => { - await ml.api.cleanMlIndices(); + for (const { jobId } of configs) { + await ml.api.deleteAnomalyDetectionJobES(jobId); + } await ml.testResources.cleanMLSavedObjects(); await ml.testResources.deleteIndexPatternByTitle('ft_farequote'); });