2015-09-17 22:29:24 +02:00
|
|
|
define(function (require) {
|
|
|
|
var registerSuite = require('intern!object');
|
|
|
|
var expect = require('intern/dojo/node!expect.js');
|
2015-10-14 21:48:51 +02:00
|
|
|
var config = require('intern').config;
|
2015-10-21 21:31:37 +02:00
|
|
|
var getUrl = require('intern/dojo/node!../utils/getUrl');
|
2015-09-17 22:29:24 +02:00
|
|
|
|
2015-09-08 18:45:29 +02:00
|
|
|
registerSuite(function () {
|
|
|
|
return {
|
2015-09-17 23:38:04 +02:00
|
|
|
'status': function () {
|
2015-09-08 18:45:29 +02:00
|
|
|
return this.remote
|
2015-10-21 21:31:37 +02:00
|
|
|
.get(getUrl(config.kibana, 'status'))
|
2015-09-08 18:45:29 +02:00
|
|
|
.setFindTimeout(60000)
|
2015-09-17 23:38:04 +02:00
|
|
|
.findByCssSelector('.plugin_status_breakdown')
|
2015-09-08 18:45:29 +02:00
|
|
|
.getVisibleText()
|
|
|
|
.then(function (text) {
|
2015-09-17 23:38:04 +02:00
|
|
|
expect(text.indexOf('plugin:kibana Ready')).to.be.above(-1);
|
2015-09-08 18:45:29 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|