stabilize legend filter click (#136925)

This commit is contained in:
Joe Reuter 2022-07-25 10:38:54 +02:00 committed by GitHub
parent 8b21e25ecf
commit 6e3f5850ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,6 +167,8 @@ export class VisualizeChartPageObject extends FtrService {
public async filterLegend(name: string, force = false) {
await this.toggleLegend(force);
await this.testSubjects.click(`legend-${name}`);
// wait for a short amount of time for popover to stabilize as there is no good way to check for that
await this.common.sleep(250);
const filterIn = await this.testSubjects.find(`legend-${name}-filterIn`);
await filterIn.click();
await this.waitForVisualizationRenderingStabilized();