mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
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 () {
|
||||
// start each test with an empty kibana index
|
||||
return common
|
||||
.sleep(1000)
|
||||
.then(function () {
|
||||
return scenarioManager
|
||||
.unload('emptyKibana');
|
||||
})
|
||||
.then(function () {
|
||||
return common
|
||||
.sleep(2000);
|
||||
})
|
||||
.then(function () {
|
||||
return scenarioManager
|
||||
.reload('emptyKibana')
|
||||
// and load a minimal set of makelogs data
|
||||
.then(function loadIfEmptyMakelogs() {
|
||||
return scenarioManager
|
||||
.load('emptyKibana');
|
||||
})
|
||||
.then(function () {
|
||||
return scenarioManager
|
||||
.loadIfEmpty('logstash');
|
||||
})
|
||||
.then(function () {
|
||||
return common
|
||||
.sleep(2000);
|
||||
return common.tryForTime(5000, function () {
|
||||
return self.remote
|
||||
.get(
|
||||
url.format(_.assign(config.kibana, {
|
||||
pathname: ''
|
||||
})))
|
||||
.then(function () {
|
||||
return common
|
||||
.sleep(500);
|
||||
})
|
||||
.then(function () {
|
||||
return self.remote
|
||||
.getCurrentUrl()
|
||||
.then(function (currentUrl) {
|
||||
expect(currentUrl).to.contain('settings');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue