mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
add back the status tests
in bdd form this time
This commit is contained in:
parent
2f3f7bf53c
commit
286badd773
2 changed files with 35 additions and 0 deletions
34
test/functional/status_page/index.js
Normal file
34
test/functional/status_page/index.js
Normal file
|
@ -0,0 +1,34 @@
|
|||
define(function (require) {
|
||||
var bdd = require('intern!bdd');
|
||||
var expect = require('intern/dojo/node!expect.js');
|
||||
var config = require('intern').config;
|
||||
var getUrl = require('intern/dojo/node!../../utils/getUrl');
|
||||
var Common = require('../../support/pages/Common');
|
||||
|
||||
bdd.describe('status page', function () {
|
||||
var common;
|
||||
|
||||
bdd.before(function () {
|
||||
common = new Common(this.remote);
|
||||
});
|
||||
|
||||
bdd.beforeEach(function () {
|
||||
// load the status page
|
||||
return this.remote.get(getUrl(config.kibana, 'status'));
|
||||
});
|
||||
|
||||
bdd.it('should show the kibana plugin as ready', function () {
|
||||
var self = this;
|
||||
|
||||
return common.tryForTime(6000, function () {
|
||||
return self.remote
|
||||
.findByCssSelector('.plugin_status_breakdown')
|
||||
.getVisibleText()
|
||||
.then(function (text) {
|
||||
expect(text.indexOf('plugin:kibana Ready')).to.be.above(-1);
|
||||
})
|
||||
})
|
||||
.catch(common.handleError(self));
|
||||
});
|
||||
});
|
||||
});
|
|
@ -12,6 +12,7 @@ define(function (require) {
|
|||
}],
|
||||
tunnelOptions: serverConfig.webdriver,
|
||||
functionalSuites: [
|
||||
'test/functional/status_page/index'
|
||||
'test/functional/apps/settings/testSettings'
|
||||
],
|
||||
excludeInstrumentation: /(fixtures|node_modules)\//,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue