Wait longer for load discover search (#19265) (#19295)

This commit is contained in:
Tim Roes 2018-05-22 16:54:02 +02:00 committed by GitHub
parent 55b8130285
commit 7d1e3ea8bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,12 @@ export function DiscoverPageProvider({ getService, getPageObjects }) {
async openSavedSearch() {
await this.clickLoadSavedSearchButton();
await testSubjects.exists('loadSearchForm');
await retry.try(async () => {
const isLoadFormVisible = await testSubjects.exists('loadSearchForm');
if (!isLoadFormVisible) {
throw new Error('Load search form not visible yet.');
}
});
}
async hasSavedSearch(searchName) {