Skip to content

Commit

Permalink
wait for vis before asserting on it (elastic#121083)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored and TinLe committed Dec 22, 2021
1 parent 8a1e6ef commit 1a34232
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/test/functional/apps/lens/smokescreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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`]);
Expand Down

0 comments on commit 1a34232

Please sign in to comment.