Merge pull request #7187 from LeeDr/tryToFixVisTests

Add try in 2 visualize page methods that have failed.
This commit is contained in:
Spencer 2016-05-12 12:56:40 -07:00
commit cb52c70c55

View file

@ -226,11 +226,14 @@ export default (function () {
},
selectField: function selectField(fieldValue) {
return this.remote
.setFindTimeout(defaultFindTimeout)
// the css below should be more selective
.findByCssSelector('option[label="' + fieldValue + '"]')
.click();
var self = this;
return common.try(function () {
return self.remote
.setFindTimeout(defaultFindTimeout)
// the css below should be more selective
.findByCssSelector('option[label="' + fieldValue + '"]')
.click();
});
},
orderBy: function orderBy(fieldValue) {
@ -341,10 +344,12 @@ export default (function () {
var self = this;
common.debug('clickVisualizationByLinkText(' + vizName + ')');
return this.remote
return common.try(function () {
return self.remote
.setFindTimeout(defaultFindTimeout)
.findByLinkText(vizName)
.click();
});
},
// this starts by clicking the Load Saved Viz button, not from the