Wait for loading indicator to disappear to signify completion of clickNewSearch() in Visualize page object.

This commit is contained in:
CJ Cenizal 2017-02-07 10:31:43 -08:00
parent 621131b25c
commit 80801591f5

View file

@ -151,8 +151,7 @@ export default class VisualizePage {
.setFindTimeout(defaultFindTimeout)
.findByCssSelector('.list-group-item a')
.click().then(() => {
// Wait for the page to render, otherwise we will get an error if Jenkins is too slow.
return PageObjects.common.sleep(200);
return PageObjects.header.isGlobalLoadingIndicatorHidden();
});
}