[7.x] [visualize] wait for save to complete before proceeding… (#40971)

This commit is contained in:
Spencer 2019-07-12 07:32:57 -06:00 committed by GitHub
parent c4ec8aa859
commit f2295f85a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -729,6 +729,9 @@ export function VisualizePageProvider({ getService, getPageObjects, updateBaseli
}
log.debug('Click Save Visualization button');
await testSubjects.click('confirmSaveSavedObjectButton');
// wait for save to complete before completion
await PageObjects.header.waitUntilLoadingHasFinished();
}
async saveVisualizationExpectSuccess(vizName, { saveAsNew = false } = {}) {