Functional tests: prevent waiting longer than necessary for loading spinner to disappear (#33922)

This commit is contained in:
Joe Reuter 2019-03-28 10:27:42 +01:00 committed by GitHub
parent 751524b673
commit 06a71e8676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {