wait for any text in dialog (#59352) (#59463)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Lee Drengenberg 2020-03-06 15:03:46 -06:00 committed by GitHub
parent 2883ec30e6
commit 8cc6c9211c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -164,6 +164,10 @@ export function SavedQueryManagementComponentProvider({ getService }: FtrProvide
if (isOpenAlready) return;
await testSubjects.click('saved-query-management-popover-button');
await retry.waitFor('saved query management popover to have any text', async () => {
const queryText = await testSubjects.getVisibleText('saved-query-management-popover');
return queryText.length > 0;
});
}
async closeSavedQueryManagementComponent() {