mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[functional testing] Test for kibana ready on status page
This commit is contained in:
parent
4ae294937d
commit
251bf525eb
2 changed files with 6 additions and 5 deletions
|
@ -3,16 +3,17 @@ define(function (require) {
|
|||
var expect = require('intern/dojo/node!expect.js');
|
||||
|
||||
registerSuite(function () {
|
||||
var url = 'http://localhost:5620/apps';
|
||||
var url = 'http://localhost:5620/status';
|
||||
return {
|
||||
'apps': function () {
|
||||
'status': function () {
|
||||
return this.remote
|
||||
.get(url)
|
||||
.refresh()
|
||||
.setFindTimeout(60000)
|
||||
.findByCssSelector('a[href="/app/kibana"]')
|
||||
.findByCssSelector('.plugin_status_breakdown')
|
||||
.getVisibleText()
|
||||
.then(function (text) {
|
||||
expect(text).to.eql('Kibana\nthe kibana you know and love');
|
||||
expect(text.indexOf('plugin:kibana Ready')).to.be.above(-1);
|
||||
});
|
||||
}
|
||||
};
|
|
@ -12,6 +12,6 @@ define({
|
|||
host: 'localhost',
|
||||
port: 4444
|
||||
},
|
||||
functionalSuites: ['test/functional/apps.js'],
|
||||
functionalSuites: ['test/functional/status.js'],
|
||||
excludeInstrumentation: /^(?:tests|node_modules)\//
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue