TryForTime to get to kibana settings tab.
This commit is contained in:
parent
167fdcd716
commit
80f2ed76cb
1 changed files with 22 additions and 17 deletions
|
@ -37,27 +37,32 @@ define(function (require) {
|
||||||
|
|
||||||
beforeEach: function () {
|
beforeEach: function () {
|
||||||
// start each test with an empty kibana index
|
// start each test with an empty kibana index
|
||||||
return common
|
return scenarioManager
|
||||||
.sleep(1000)
|
.reload('emptyKibana')
|
||||||
.then(function () {
|
// and load a minimal set of makelogs data
|
||||||
return scenarioManager
|
.then(function loadIfEmptyMakelogs() {
|
||||||
.unload('emptyKibana');
|
|
||||||
})
|
|
||||||
.then(function () {
|
|
||||||
return common
|
|
||||||
.sleep(2000);
|
|
||||||
})
|
|
||||||
.then(function () {
|
|
||||||
return scenarioManager
|
return scenarioManager
|
||||||
.load('emptyKibana');
|
.load('emptyKibana');
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return scenarioManager
|
return common.tryForTime(5000, function () {
|
||||||
.loadIfEmpty('logstash');
|
return self.remote
|
||||||
})
|
.get(
|
||||||
.then(function () {
|
url.format(_.assign(config.kibana, {
|
||||||
return common
|
pathname: ''
|
||||||
.sleep(2000);
|
})))
|
||||||
|
.then(function () {
|
||||||
|
return common
|
||||||
|
.sleep(500);
|
||||||
|
})
|
||||||
|
.then(function () {
|
||||||
|
return self.remote
|
||||||
|
.getCurrentUrl()
|
||||||
|
.then(function (currentUrl) {
|
||||||
|
expect(currentUrl).to.contain('settings');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue