From f6c442ba7076a179a9f03697fc441102c3f11ca1 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Tue, 3 Nov 2015 15:53:57 -0700 Subject: [PATCH] add back the status tests in bdd form this time --- test/functional/status_page/index.js | 34 ++++++++++++++++++++++++++++ test/intern.js | 1 + 2 files changed, 35 insertions(+) create mode 100644 test/functional/status_page/index.js diff --git a/test/functional/status_page/index.js b/test/functional/status_page/index.js new file mode 100644 index 000000000000..d1eb86212ab7 --- /dev/null +++ b/test/functional/status_page/index.js @@ -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)); + }); + }); +}); \ No newline at end of file diff --git a/test/intern.js b/test/intern.js index 76aba2141902..10f2dc1666fd 100644 --- a/test/intern.js +++ b/test/intern.js @@ -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)\//,