mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Steps to debug and/or fix functional test timeouts.
This commit is contained in:
parent
fba36625c3
commit
c42c0069e8
4 changed files with 12 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue