Functional tests: prevent waiting longer than necessary for loading spinner to disappear (#33922)
This commit is contained in:
parent
751524b673
commit
06a71e8676
|
@ -104,9 +104,7 @@ export function DashboardAddPanelProvider({ getService, getPageObjects }) {
|
|||
}
|
||||
|
||||
async waitForListLoading() {
|
||||
await retry.waitFor('dashboard add panel loading to complete', async () => {
|
||||
return !(await testSubjects.exists('savedObjectFinderLoadingIndicator'));
|
||||
});
|
||||
await testSubjects.waitForDeleted('savedObjectFinderLoadingIndicator');
|
||||
}
|
||||
|
||||
async closeAddPanel() {
|
||||
|
|
Loading…
Reference in a new issue