mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
give the tests more time to find row count in tab
and remove the angular-specific class selection
This commit is contained in:
parent
ded258c53b
commit
0a166e3b0f
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…
Add table
Add a link
Reference in a new issue