Skip to content

Commit

Permalink
[Lens] Fixes metrics test flakiness by using the Lens waitForVisualiz…
Browse files Browse the repository at this point in the history
…ation function
  • Loading branch information
stratoula committed Jan 10, 2022
1 parent 526367c commit 90c9ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/test/functional/apps/lens/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await testSubjects.setValue('lnsPalettePanel_dynamicColoring_stop_value_1', '21000', {
clearWithKeyboard: true,
});
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.lens.waitForVisualization();
const styleObj = await PageObjects.lens.getMetricStyle();
expect(styleObj.color).to.be('rgb(32, 146, 128)');
});
Expand Down

0 comments on commit 90c9ba5

Please sign in to comment.