From 59df433c5b723f1d7445ae5cf65707c033883f40 Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Mon, 13 Dec 2021 14:53:18 +0100 Subject: [PATCH] wait for vis before asserting on it --- x-pack/test/functional/apps/lens/smokescreen.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/test/functional/apps/lens/smokescreen.ts b/x-pack/test/functional/apps/lens/smokescreen.ts index 7cacee6446723..7064b11113fad 100644 --- a/x-pack/test/functional/apps/lens/smokescreen.ts +++ b/x-pack/test/functional/apps/lens/smokescreen.ts @@ -59,6 +59,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await listingTable.searchForItemWithName('Afancilenstest'); await PageObjects.lens.clickVisualizeListItemTitle('Afancilenstest'); await PageObjects.lens.goToTimeRange(); + await PageObjects.lens.waitForVisualization(); expect(await PageObjects.lens.getTitle()).to.eql('Afancilenstest'); @@ -80,6 +81,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { keepOpen: true, }); await PageObjects.lens.addFilterToAgg(`geo.src : CN`); + await PageObjects.lens.waitForVisualization(); // Verify that the field was persisted from the transition expect(await PageObjects.lens.getFiltersAggLabels()).to.eql([`ip : *`, `geo.src : CN`]);