From e79edfb7fc5403ef136a69bcc593e304420628b9 Mon Sep 17 00:00:00 2001 From: Yngrid Coello Date: Fri, 4 Oct 2024 13:02:34 +0200 Subject: [PATCH] [Dataset quality] fixing flaky test for dataset details summary size (#194683) Closes https://github.com/elastic/kibana/issues/194575. Flaky test runner [here](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7072) (cherry picked from commit 036f35e3a6fc8acff52d06b45b21e4a795d002f1) --- .../dataset_quality/dataset_quality_details.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/dataset_quality_details.ts b/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/dataset_quality_details.ts index 477e45d0e59f9..712ed11a28f93 100644 --- a/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/dataset_quality_details.ts +++ b/x-pack/test_serverless/functional/test_suites/observability/dataset_quality/dataset_quality_details.ts @@ -56,7 +56,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const degradedDatasetName = datasetNames[2]; const degradedDataStreamName = `logs-${degradedDatasetName}-${defaultNamespace}`; - describe('Flyout', function () { + describe('Dataset quality details', function () { before(async () => { // Install Apache Integration and ingest logs for it await PageObjects.observabilityLogsExplorer.installPackage(apachePkg); @@ -178,7 +178,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { expect(parseInt(degradedDocs, 10)).to.be(1); expect(parseInt(services, 10)).to.be(3); expect(parseInt(hosts, 10)).to.be(52); - expect(parseInt(size, 10)).to.be.greaterThan(0); + // metering stats API is cached for 30seconds, waiting for the exact value is not optimal in this case + // rather we can just check if any value is present + expect(size).to.be.ok(); }); });