From 5c3916e8b423e5c821b3796f7502d46c08cd5e35 Mon Sep 17 00:00:00 2001 From: DziyanaDzeraviankina Date: Fri, 8 Apr 2022 13:15:49 +0300 Subject: [PATCH] =?UTF-8?q?Failing=20test:=20Firefox=20UI=20Functional=20T?= =?UTF-8?q?ests.test/functional/apps/discover/=5Ffield=5Fdata=5Fwith=5Ffie?= =?UTF-8?q?lds=5Fapi=C2=B7ts=20-=20discover=20app=20discover=20tab=20with?= =?UTF-8?q?=20new=20fields=20API=20field=20data=20shows=20top-level=20obje?= =?UTF-8?q?ct=20keys?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/discover/_field_data_with_fields_api.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/functional/apps/discover/_field_data_with_fields_api.ts b/test/functional/apps/discover/_field_data_with_fields_api.ts index 402783694cbd5..d7912d6d0959f 100644 --- a/test/functional/apps/discover/_field_data_with_fields_api.ts +++ b/test/functional/apps/discover/_field_data_with_fields_api.ts @@ -34,8 +34,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.timePicker.setDefaultAbsoluteRangeViaUiSettings(); await PageObjects.common.navigateToApp('discover'); }); - // FLAKY: https://github.com/elastic/kibana/issues/127905 - describe.skip('field data', function () { + describe('field data', function () { it('search php should show the correct hit count', async function () { const expectedHitCount = '445'; await retry.try(async function () { @@ -92,12 +91,14 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { hash.replace('columns:!()', 'columns:!(relatedContent)'), { useActualUrl: true } ); + + await PageObjects.header.waitUntilLoadingHasFinished(); await retry.try(async function tryingForTime() { expect(await PageObjects.discover.getDocHeader()).to.contain('relatedContent'); - }); - const field = await PageObjects.discover.getDocTableIndex(1); - expect(field).to.contain('relatedContent.url'); + const field = await PageObjects.discover.getDocTableIndex(1); + expect(field).to.contain('relatedContent.url'); + }); const marks = await PageObjects.discover.getMarks(); expect(marks.length).to.be.above(0);