Steps to debug and/or fix functional test timeouts.
This commit is contained in:
parent
7e3d846afd
commit
7411132164
|
@ -12,7 +12,6 @@ define(function (require) {
|
|||
var settingsPage;
|
||||
var discoverPage;
|
||||
var remote;
|
||||
this.timeout = 60000;
|
||||
|
||||
bdd.before(function () {
|
||||
common = new Common(this.remote);
|
||||
|
@ -71,7 +70,6 @@ define(function (require) {
|
|||
|
||||
bdd.it('save query should show toast message and display query name', function () {
|
||||
var expectedSavedQueryMessage = 'Discover: Saved Data Source "' + queryName1 + '"';
|
||||
this.timeout = 60000;
|
||||
return discoverPage.saveSearch(queryName1)
|
||||
.then(function () {
|
||||
return headerPage.getToastMessage();
|
||||
|
|
|
@ -19,6 +19,7 @@ define(function (require) {
|
|||
bdd.before(function () {
|
||||
common = new Common(this.remote);
|
||||
remote = this.remote;
|
||||
this.timeout = 120000;
|
||||
});
|
||||
|
||||
bdd.after(function unloadMakelogs() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -31,7 +31,10 @@ define(function (require) {
|
|||
if (testStatusPage !== false) {
|
||||
return self.checkForKibanaApp()
|
||||
.then(function (kibanaLoaded) {
|
||||
if (!kibanaLoaded) throw new Error('Kibana is not loaded, retrying');
|
||||
if (!kibanaLoaded) {
|
||||
throw new Error(moment().format('HH:mm:ss.SSS') + ': ' +
|
||||
'Kibana is not loaded, retrying');
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
|
@ -40,7 +43,12 @@ define(function (require) {
|
|||
})
|
||||
.then(function (currentUrl) {
|
||||
var navSuccessful = new RegExp(appUrl).test(currentUrl);
|
||||
if (!navSuccessful) throw new Error('App failed to load: ' + appName);
|
||||
if (!navSuccessful) {
|
||||
throw new Error(moment().format('HH:mm:ss.SSS') + ': ' +
|
||||
'App failed to load: ' + appName +
|
||||
' in ' + defaultTimeout + 'ms' +
|
||||
' currentUrl = ' + currentUrl);
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue