mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Merge pull request #7187 from LeeDr/tryToFixVisTests
Add try in 2 visualize page methods that have failed.
This commit is contained in:
commit
cb52c70c55
1 changed files with 11 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue