[Discover] Improve functional saved query test to prevent flakiness (#107204)

This commit is contained in:
Matthias Wilhelm 2021-08-02 13:40:22 +02:00 committed by GitHub
parent f27c94c118
commit d4a225cb2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,7 @@ export class SavedQueryManagementComponentService extends FtrService {
async savedQueryExist(title: string) {
await this.openSavedQueryManagementComponent();
const exists = this.testSubjects.exists(`~load-saved-query-${title}-button`);
const exists = await this.testSubjects.exists(`~load-saved-query-${title}-button`);
await this.closeSavedQueryManagementComponent();
return exists;
}