Add check for UTC timezone before each visualize test with data.
This commit is contained in:
parent
41fb59c392
commit
172ec0b399
9 changed files with 75 additions and 45 deletions
|
@ -37,6 +37,16 @@ define(function (require) {
|
||||||
common.debug('createIndexPattern');
|
common.debug('createIndexPattern');
|
||||||
return settingsPage.createIndexPattern();
|
return settingsPage.createIndexPattern();
|
||||||
})
|
})
|
||||||
|
.then(function () {
|
||||||
|
return settingsPage.clickAdvancedTab();
|
||||||
|
})
|
||||||
|
.then(function GetAdvancedSetting() {
|
||||||
|
common.debug('check for required UTC timezone');
|
||||||
|
return settingsPage.getAdvancedSettings('dateFormat:tz');
|
||||||
|
})
|
||||||
|
.then(function (advancedSetting) {
|
||||||
|
expect(advancedSetting).to.be('UTC');
|
||||||
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
common.debug('navigateToApp visualize');
|
common.debug('navigateToApp visualize');
|
||||||
return common.navigateToApp('visualize');
|
return common.navigateToApp('visualize');
|
||||||
|
|
|
@ -37,6 +37,16 @@ define(function (require) {
|
||||||
common.debug('createIndexPattern');
|
common.debug('createIndexPattern');
|
||||||
return settingsPage.createIndexPattern();
|
return settingsPage.createIndexPattern();
|
||||||
})
|
})
|
||||||
|
.then(function () {
|
||||||
|
return settingsPage.clickAdvancedTab();
|
||||||
|
})
|
||||||
|
.then(function GetAdvancedSetting() {
|
||||||
|
common.debug('check for required UTC timezone');
|
||||||
|
return settingsPage.getAdvancedSettings('dateFormat:tz');
|
||||||
|
})
|
||||||
|
.then(function (advancedSetting) {
|
||||||
|
expect(advancedSetting).to.be('UTC');
|
||||||
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
common.debug('navigateToApp visualize');
|
common.debug('navigateToApp visualize');
|
||||||
return common.navigateToApp('visualize');
|
return common.navigateToApp('visualize');
|
||||||
|
|
|
@ -34,6 +34,16 @@ define(function (require) {
|
||||||
common.debug('createIndexPattern');
|
common.debug('createIndexPattern');
|
||||||
return settingsPage.createIndexPattern();
|
return settingsPage.createIndexPattern();
|
||||||
})
|
})
|
||||||
|
.then(function () {
|
||||||
|
return settingsPage.clickAdvancedTab();
|
||||||
|
})
|
||||||
|
.then(function GetAdvancedSetting() {
|
||||||
|
common.debug('check for required UTC timezone');
|
||||||
|
return settingsPage.getAdvancedSettings('dateFormat:tz');
|
||||||
|
})
|
||||||
|
.then(function (advancedSetting) {
|
||||||
|
expect(advancedSetting).to.be('UTC');
|
||||||
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
common.debug('navigateToApp visualize');
|
common.debug('navigateToApp visualize');
|
||||||
return common.navigateToApp('visualize');
|
return common.navigateToApp('visualize');
|
||||||
|
|
|
@ -41,6 +41,16 @@ define(function (require) {
|
||||||
common.debug('createIndexPattern');
|
common.debug('createIndexPattern');
|
||||||
return settingsPage.createIndexPattern();
|
return settingsPage.createIndexPattern();
|
||||||
})
|
})
|
||||||
|
.then(function () {
|
||||||
|
return settingsPage.clickAdvancedTab();
|
||||||
|
})
|
||||||
|
.then(function GetAdvancedSetting() {
|
||||||
|
common.debug('check for required UTC timezone');
|
||||||
|
return settingsPage.getAdvancedSettings('dateFormat:tz');
|
||||||
|
})
|
||||||
|
.then(function (advancedSetting) {
|
||||||
|
expect(advancedSetting).to.be('UTC');
|
||||||
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
common.debug('navigateToApp visualize');
|
common.debug('navigateToApp visualize');
|
||||||
return common.navigateToApp('visualize');
|
return common.navigateToApp('visualize');
|
||||||
|
|
|
@ -34,6 +34,16 @@ define(function (require) {
|
||||||
common.debug('createIndexPattern');
|
common.debug('createIndexPattern');
|
||||||
return settingsPage.createIndexPattern();
|
return settingsPage.createIndexPattern();
|
||||||
})
|
})
|
||||||
|
.then(function () {
|
||||||
|
return settingsPage.clickAdvancedTab();
|
||||||
|
})
|
||||||
|
.then(function GetAdvancedSetting() {
|
||||||
|
common.debug('check for required UTC timezone');
|
||||||
|
return settingsPage.getAdvancedSettings('dateFormat:tz');
|
||||||
|
})
|
||||||
|
.then(function (advancedSetting) {
|
||||||
|
expect(advancedSetting).to.be('UTC');
|
||||||
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
common.debug('navigateToApp visualize');
|
common.debug('navigateToApp visualize');
|
||||||
return common.navigateToApp('visualize');
|
return common.navigateToApp('visualize');
|
||||||
|
|
|
@ -36,6 +36,16 @@ define(function (require) {
|
||||||
common.debug('createIndexPattern');
|
common.debug('createIndexPattern');
|
||||||
return settingsPage.createIndexPattern();
|
return settingsPage.createIndexPattern();
|
||||||
})
|
})
|
||||||
|
.then(function () {
|
||||||
|
return settingsPage.clickAdvancedTab();
|
||||||
|
})
|
||||||
|
.then(function GetAdvancedSetting() {
|
||||||
|
common.debug('check for required UTC timezone');
|
||||||
|
return settingsPage.getAdvancedSettings('dateFormat:tz');
|
||||||
|
})
|
||||||
|
.then(function (advancedSetting) {
|
||||||
|
expect(advancedSetting).to.be('UTC');
|
||||||
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
common.debug('navigateToApp visualize');
|
common.debug('navigateToApp visualize');
|
||||||
return common.navigateToApp('visualize');
|
return common.navigateToApp('visualize');
|
||||||
|
|
|
@ -36,6 +36,16 @@ define(function (require) {
|
||||||
common.debug('createIndexPattern');
|
common.debug('createIndexPattern');
|
||||||
return settingsPage.createIndexPattern();
|
return settingsPage.createIndexPattern();
|
||||||
})
|
})
|
||||||
|
.then(function () {
|
||||||
|
return settingsPage.clickAdvancedTab();
|
||||||
|
})
|
||||||
|
.then(function GetAdvancedSetting() {
|
||||||
|
common.debug('check for required UTC timezone');
|
||||||
|
return settingsPage.getAdvancedSettings('dateFormat:tz');
|
||||||
|
})
|
||||||
|
.then(function (advancedSetting) {
|
||||||
|
expect(advancedSetting).to.be('UTC');
|
||||||
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
common.debug('navigateToApp visualize');
|
common.debug('navigateToApp visualize');
|
||||||
return common.navigateToApp('visualize');
|
return common.navigateToApp('visualize');
|
||||||
|
|
|
@ -13,9 +13,9 @@ define(function (require) {
|
||||||
}],
|
}],
|
||||||
tunnelOptions: serverConfig.servers.webdriver,
|
tunnelOptions: serverConfig.servers.webdriver,
|
||||||
functionalSuites: [
|
functionalSuites: [
|
||||||
'test/functional/status_page/index',
|
// 'test/functional/status_page/index',
|
||||||
'test/functional/apps/settings/index',
|
// 'test/functional/apps/settings/index',
|
||||||
'test/functional/apps/discover/index',
|
// 'test/functional/apps/discover/index',
|
||||||
'test/functional/apps/visualize/index'
|
'test/functional/apps/visualize/index'
|
||||||
],
|
],
|
||||||
excludeInstrumentation: /(fixtures|node_modules)\//,
|
excludeInstrumentation: /(fixtures|node_modules)\//,
|
||||||
|
|
|
@ -16,7 +16,7 @@ define(function (require) {
|
||||||
constructor: SettingsPage,
|
constructor: SettingsPage,
|
||||||
|
|
||||||
clickAdvancedTab: function () {
|
clickAdvancedTab: function () {
|
||||||
console.log('in clickAdvancedTab');
|
common.debug('in clickAdvancedTab');
|
||||||
return common.findTestSubject('settingsNav advanced').click();
|
return common.findTestSubject('settingsNav advanced').click();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ define(function (require) {
|
||||||
|
|
||||||
getAdvancedSettings: function getAdvancedSettings(propertyName) {
|
getAdvancedSettings: function getAdvancedSettings(propertyName) {
|
||||||
var self = this;
|
var self = this;
|
||||||
console.log('in setAdvancedSettings');
|
common.debug('in setAdvancedSettings');
|
||||||
return common.findTestSubject('advancedSetting&' + propertyName + ' currentValue')
|
return common.findTestSubject('advancedSetting&' + propertyName + ' currentValue')
|
||||||
.getVisibleText();
|
.getVisibleText();
|
||||||
},
|
},
|
||||||
|
@ -49,46 +49,6 @@ define(function (require) {
|
||||||
return common.navigateToApp('settings');
|
return common.navigateToApp('settings');
|
||||||
},
|
},
|
||||||
|
|
||||||
setAdvancedSetting2: function (propertyName, propertyValue) {
|
|
||||||
var self = this;
|
|
||||||
// assumes we're on Settings tab already
|
|
||||||
//click Advanced sub-tab
|
|
||||||
return this.remote.setFindTimeout(defaultTimeout)
|
|
||||||
.findByLinkText('Advanced').click()
|
|
||||||
.then(function () {
|
|
||||||
//.table
|
|
||||||
return self.remote.findByCssSelector('tr')
|
|
||||||
.then(function (table) {
|
|
||||||
common.log('table.rows = ' + table.length); // undefined
|
|
||||||
common.log('table.rows = ' + table.size); // undefined
|
|
||||||
common.log('table.rows = ' + table.count); // undefined
|
|
||||||
common.log('table.getProperty(rows).length = ' + table.getProperty('rows').length); // undefined
|
|
||||||
common.log('table.getProperty(rows) = ' + table.getProperty('rows')); // [object Object]
|
|
||||||
common.log('table.getProperty(rows).size = ' + table.getProperty('rows').size); // undefined
|
|
||||||
// common.log('table.getProperty(rows).size = ' + table.getProperty('rows').size()); // exception
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
setAdvancedSetting: function (propertyName, propertyValue) {
|
|
||||||
var self = this;
|
|
||||||
// assumes we're on Settings tab already
|
|
||||||
//click Advanced sub-tab
|
|
||||||
return this.remote.setFindTimeout(defaultTimeout)
|
|
||||||
.findByLinkText('Advanced').click()
|
|
||||||
.then(function () {
|
|
||||||
return self.remote.findByCssSelector('tr > td > b:contains("' + propertyName + '")')
|
|
||||||
.then(function (foundit) {
|
|
||||||
console.log('foundit)');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
// },
|
|
||||||
// .ng-binding
|
|
||||||
// tr.ng-scope:nth-child(4) > td:nth-child(1)
|
|
||||||
// tr.ng-scope:nth-child(4) > td:nth-child(3) > button:nth-child(1) (the edit button)
|
|
||||||
// .findByCssSelector('input[ng-model="index.isTimeBased"]');
|
|
||||||
},
|
|
||||||
|
|
||||||
getTimeBasedEventsCheckbox: function () {
|
getTimeBasedEventsCheckbox: function () {
|
||||||
return this.remote.setFindTimeout(defaultTimeout)
|
return this.remote.setFindTimeout(defaultTimeout)
|
||||||
|
|
Loading…
Reference in a new issue