From 16c3bbec341405759aacdd6df546e6549f35c821 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 8 Dec 2023 06:23:13 -0500 Subject: [PATCH] [8.12] [Discover] Unskip field tokens tests (#172794) (#172841) # Backport This will backport the following commits from `main` to `8.12`: - [[Discover] Unskip field tokens tests (#172794)](https://github.com/elastic/kibana/pull/172794) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --------- Co-authored-by: Julia Rechkunova Co-authored-by: Julia Rechkunova --- .../apps/discover/group2/_data_grid_field_tokens.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/test/functional/apps/discover/group2/_data_grid_field_tokens.ts b/test/functional/apps/discover/group2/_data_grid_field_tokens.ts index 18ec1956b86a7..8758835c0efff 100644 --- a/test/functional/apps/discover/group2/_data_grid_field_tokens.ts +++ b/test/functional/apps/discover/group2/_data_grid_field_tokens.ts @@ -60,8 +60,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { return firstFieldIcons; } - // FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/172874 - describe.skip('discover data grid field tokens', function () { + describe('discover data grid field tokens', function () { before(async () => { await security.testUser.setRoles(['kibana_admin', 'test_logstash_reader']); await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional'); @@ -129,21 +128,17 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.unifiedFieldList.clickFieldListItemAdd('bytes'); await PageObjects.unifiedFieldList.clickFieldListItemAdd('extension'); await PageObjects.unifiedFieldList.clickFieldListItemAdd('ip'); - await PageObjects.unifiedFieldList.clickFieldListItemAdd('geo.coordinates'); expect(await findFirstColumnTokens()).to.eql(['Number', 'String', 'String']); - expect(await findFirstDocViewerTokens()).to.eql([ + const docViewerTokens = await findFirstDocViewerTokens(); + expect(docViewerTokens?.slice(0, 6)).to.eql([ 'String', 'String', 'Date', 'String', 'Number', 'String', - 'String', - 'Unknown field', - 'String', - 'String', ]); });