mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
bump the getFieldsTabCount timeout
disable debugging
This commit is contained in:
parent
10e3c256b7
commit
d04c50feab
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…
Add table
Add a link
Reference in a new issue