From 2632c7479c2b0fcfb98e1abaf306871052e257dd Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Fri, 6 Nov 2015 14:45:38 -0700 Subject: [PATCH] debugging ci test failures DEBUGGING; why is index creation failing on CI? debugging debugging bump timeout. i'm out of ideas. ugh. --- .../apps/settings/_creation_form_changes.js | 2 +- test/intern.js | 2 +- test/support/pages/SettingsPage.js | 34 ++++++++++++++++++- 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/test/functional/apps/settings/_creation_form_changes.js b/test/functional/apps/settings/_creation_form_changes.js index 3932fc98e661..8fc6e271ac84 100644 --- a/test/functional/apps/settings/_creation_form_changes.js +++ b/test/functional/apps/settings/_creation_form_changes.js @@ -43,7 +43,7 @@ define(function (require) { }); }); - bdd.it('should be enable creation after selecting time field', function () { + bdd.it('should enable creation after selecting time field', function () { // select a time field and check that Create button is enabled return settingsPage.selectTimeFieldOption('@timestamp') .then(function () { diff --git a/test/intern.js b/test/intern.js index adb93ed4b6d5..472fe9cd837b 100644 --- a/test/intern.js +++ b/test/intern.js @@ -3,7 +3,7 @@ define(function (require) { var _ = require('intern/dojo/node!lodash'); return _.assign({ - debug: false, + debug: true, capabilities: { 'selenium-version': '2.47.1', 'idle-timeout': 30 diff --git a/test/support/pages/SettingsPage.js b/test/support/pages/SettingsPage.js index cf44b950df4e..82592aaf7bed 100644 --- a/test/support/pages/SettingsPage.js +++ b/test/support/pages/SettingsPage.js @@ -6,7 +6,7 @@ define(function (require) { var Common = require('./Common'); - var defaultTimeout = 5000; + var defaultTimeout = 6000; var common; function SettingsPage(remote) { @@ -52,6 +52,22 @@ define(function (require) { }) .then(function () { return self.getTimeFieldOption(selection); + }) + // DEBUGGING + .catch(function (err) { + common.debug('FAILED to creat index patter'); + return common.checkForKibanaApp() + .then(function (onKibana) { + common.debug('onKibana') + common.debug(onKibana) + }) + .then(function () { + return self.remote.getCurrentUrl(); + }) + .then(function (url) { + common.debug('FAILED on url ' + url); + throw err + }) }); }, @@ -251,6 +267,22 @@ define(function (require) { } }); }); + }) + // DEBUGGING + .catch(function (err) { + common.debug('FAILED to create index pattern'); + return common.checkForKibanaApp() + .then(function (onKibana) { + common.debug('onKibana') + common.debug(onKibana) + }) + .then(function () { + return self.remote.getCurrentUrl(); + }) + .then(function (url) { + common.debug('FAILED on url ' + url); + throw err + }) }); },