[Functional Tests] Increase the timeout on getting the legend value on timeseries (#73279)

This commit is contained in:
Stratoula Kalafateli 2020-07-28 17:34:40 +03:00 committed by GitHub
parent 330c966f4f
commit 0dbfde4f4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -315,9 +315,9 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }: FtrPro
public async getRhythmChartLegendValue(nth = 0) {
await PageObjects.visChart.waitForVisualizationRenderingStabilized();
const metricValue = (await find.allByCssSelector(`.echLegendItem .echLegendItem__extra`))[
nth
];
const metricValue = (
await find.allByCssSelector(`.echLegendItem .echLegendItem__extra`, 20000)
)[nth];
await metricValue.moveMouseTo();
return await metricValue.getVisibleText();
}