add back the status tests
in bdd form this time
This commit is contained in:
parent
6419590b0b
commit
f6c442ba70
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,
|
tunnelOptions: serverConfig.webdriver,
|
||||||
functionalSuites: [
|
functionalSuites: [
|
||||||
|
'test/functional/status_page/index'
|
||||||
'test/functional/apps/settings/testSettings'
|
'test/functional/apps/settings/testSettings'
|
||||||
],
|
],
|
||||||
excludeInstrumentation: /(fixtures|node_modules)\//,
|
excludeInstrumentation: /(fixtures|node_modules)\//,
|
||||||
|
|
Loading…
Reference in a new issue