From 21ca904cfd7eee75202b61c8e7be3e9ad6c2fda4 Mon Sep 17 00:00:00 2001 From: Walter Rafelsberger Date: Mon, 19 Feb 2024 08:59:53 +0100 Subject: [PATCH] [ML] Transforms: Update functional test assertion, reenable tests. (#176920) ## Summary Fixes #151889 Fixes #151811 Fixes #176697 Fixes #176698 Fixes #176865 Updates assertions after ES snapshot promotion and reenables tests. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --- .../creation/index_pattern/creation_index_pattern.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/x-pack/test/functional/apps/transform/creation/index_pattern/creation_index_pattern.ts b/x-pack/test/functional/apps/transform/creation/index_pattern/creation_index_pattern.ts index 7832d6b8b372a9..93e2fe767bdd64 100644 --- a/x-pack/test/functional/apps/transform/creation/index_pattern/creation_index_pattern.ts +++ b/x-pack/test/functional/apps/transform/creation/index_pattern/creation_index_pattern.ts @@ -22,9 +22,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const transform = getService('transform'); const pageObjects = getPageObjects(['discover']); - // Failing: See https://github.com/elastic/kibana/issues/151889 - // Failing: See https://github.com/elastic/kibana/issues/151811 - describe.skip('creation_index_pattern', function () { + describe('creation_index_pattern', function () { before(async () => { await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce'); await transform.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date'); @@ -225,7 +223,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { { chartAvailable: true, id: 'customer_full_name', - legend: 'top 20 of 3321 categories', + legend: 'top 20 of 3327 categories', colorStats: [ { color: '#000000', percentage: 25 }, { color: '#54B399', percentage: 75 }, @@ -529,9 +527,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await transform.sourceSelection.selectSource(testData.source); }); - // FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/176697 - // FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/176698 - it.skip('navigates through the wizard and sets all needed fields', async () => { + it('navigates through the wizard and sets all needed fields', async () => { await transform.testExecution.logTestStep('displays the define step'); await transform.wizard.assertDefineStepActive();