Wait longer for load discover search (#19265)
This commit is contained in:
parent
0ab9703287
commit
f84d57afd7
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue