bump the getFieldsTabCount timeout
disable debugging
This commit is contained in:
parent
7c2ed51050
commit
e1606565c7
2 changed files with 6 additions and 10 deletions
|
@ -3,7 +3,7 @@ define(function (require) {
|
|||
var _ = require('intern/dojo/node!lodash');
|
||||
|
||||
return _.assign({
|
||||
debug: true,
|
||||
debug: false,
|
||||
capabilities: {
|
||||
'selenium-version': '2.47.1',
|
||||
'idle-timeout': 30
|
||||
|
|
|
@ -124,16 +124,12 @@ 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
|
||||
|
||||
return common.tryForTime(defaultTimeout, function () {
|
||||
return self.remote.findByCssSelector(selector);
|
||||
})
|
||||
.then(function () {
|
||||
return self.remote.findByCssSelector(selector).getVisibleText()
|
||||
.then(function (theText) {
|
||||
// the value has () around it, remove them
|
||||
return theText.replace(/\((.*)\)/, '$1');
|
||||
});
|
||||
return self.remote.setFindTimeout(timeout).findByCssSelector(selector).getVisibleText()
|
||||
.then(function (theText) {
|
||||
// the value has () around it, remove them
|
||||
return theText.replace(/\((.*)\)/, '$1');
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue