give the tests more time to find row count in tab
and remove the angular-specific class selection
This commit is contained in:
parent
bbf9690782
commit
fe10e6f916
1 changed files with 12 additions and 4 deletions
|
@ -140,11 +140,19 @@ define(function (require) {
|
|||
|
||||
getFieldsTabCount: function getFieldsTabCount() {
|
||||
var self = this;
|
||||
var selector = 'li.kbn-settings-tab.ng-scope.active a.ng-binding small.ng-binding';
|
||||
var timeout = defaultTimeout * 2; // takes a little extra time to render
|
||||
var selector = 'li.kbn-settings-tab.active a small';
|
||||
|
||||
return self.remote.setFindTimeout(timeout)
|
||||
.findByCssSelector(selector).getVisibleText()
|
||||
var getText = function () {
|
||||
return self.remote.setFindTimeout(defaultTimeout)
|
||||
.findByCssSelector(selector).getVisibleText();
|
||||
}
|
||||
|
||||
return common.tryForTime(defaultTimeout * 4, function () {
|
||||
return getText();
|
||||
})
|
||||
.then(function () {
|
||||
return getText();
|
||||
})
|
||||
.then(function (theText) {
|
||||
// the value has () around it, remove them
|
||||
return theText.replace(/\((.*)\)/, '$1');
|
||||
|
|
Loading…
Reference in a new issue