mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
retry clicking (#125768)
This commit is contained in:
parent
4319ea80a4
commit
68f475f0ed
1 changed files with 6 additions and 2 deletions
|
@ -195,8 +195,12 @@ export class InspectorService extends FtrService {
|
|||
*/
|
||||
public async openInspectorView(viewId: string): Promise<void> {
|
||||
this.log.debug(`Open Inspector view ${viewId}`);
|
||||
await this.testSubjects.click('inspectorViewChooser');
|
||||
await this.testSubjects.click(viewId);
|
||||
await this.retry.try(async () => {
|
||||
await this.testSubjects.click('inspectorViewChooser');
|
||||
// check whether popover menu opens, if not, fail and retry opening
|
||||
await this.testSubjects.existOrFail(viewId, { timeout: 2000 });
|
||||
await this.testSubjects.click(viewId);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue