mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Add getSpinnerDone on clickNewSearch to fix failures
This commit is contained in:
parent
929f30c8cc
commit
dfacedb27b
1 changed files with 19 additions and 4 deletions
|
@ -3,13 +3,16 @@ define(function (require) {
|
|||
var config = require('intern').config;
|
||||
var registerSuite = require('intern!object');
|
||||
var Common = require('./common');
|
||||
var HeaderPage = require('./header_page');
|
||||
|
||||
var defaultTimeout = config.timeouts.default;
|
||||
var common;
|
||||
var headerPage;
|
||||
|
||||
function VisualizePage(remote) {
|
||||
this.remote = remote;
|
||||
common = new Common(this.remote);
|
||||
headerPage = new HeaderPage(this.remote);
|
||||
}
|
||||
|
||||
VisualizePage.prototype = {
|
||||
|
@ -122,7 +125,10 @@ define(function (require) {
|
|||
return this.remote
|
||||
.setFindTimeout(defaultTimeout * 2)
|
||||
.findByClassName('kbn-timepicker-go')
|
||||
.click();
|
||||
.click()
|
||||
.then(function () {
|
||||
return headerPage.getSpinnerDone();
|
||||
});
|
||||
},
|
||||
|
||||
collapseChart: function collapseChart() {
|
||||
|
@ -151,7 +157,10 @@ define(function (require) {
|
|||
return this.remote
|
||||
.setFindTimeout(defaultTimeout)
|
||||
.findByCssSelector('li[ng-click="stepTwoMode=\'new\'"]')
|
||||
.click();
|
||||
.click()
|
||||
.then(function () {
|
||||
return headerPage.getSpinnerDone();
|
||||
});
|
||||
},
|
||||
|
||||
setValue: function setValue(newValue) {
|
||||
|
@ -178,7 +187,10 @@ define(function (require) {
|
|||
return this.remote
|
||||
.setFindTimeout(defaultTimeout)
|
||||
.findByCssSelector('li[ng-click="stepTwoMode=\'saved\'"]')
|
||||
.click();
|
||||
.click()
|
||||
.then(function () {
|
||||
return headerPage.getSpinnerDone();
|
||||
});
|
||||
},
|
||||
|
||||
selectSearch: function selectSearch(searchName) {
|
||||
|
@ -282,7 +294,10 @@ define(function (require) {
|
|||
return this.remote
|
||||
.setFindTimeout(defaultTimeout)
|
||||
.findByCssSelector('.btn-success')
|
||||
.click();
|
||||
.click()
|
||||
.then(function () {
|
||||
return headerPage.getSpinnerDone();
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue