add back the status tests

in bdd form this time
This commit is contained in:
Joe Fleming 2015-11-03 15:53:57 -07:00
parent 6419590b0b
commit f6c442ba70
2 changed files with 35 additions and 0 deletions

View 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));
});
});
});

View file

@ -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)\//,