Skip to content

Commit

Permalink
Functions and test for setting advanced properties.
Browse files Browse the repository at this point in the history
Fixes #5600
  • Loading branch information
LeeDr committed Dec 8, 2015
1 parent a8f4c24 commit 9d1c770
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions test/functional/apps/settings/_advanced_settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
define(function (require) {
var Common = require('../../../support/pages/Common');
var SettingsPage = require('../../../support/pages/SettingsPage');
var expect = require('intern/dojo/node!expect.js');
var Promise = require('bluebird');

return function (bdd, scenarioManager) {
bdd.describe('creating and deleting default index', function describeIndexTests() {
var common;
var settingsPage;
var remote;

bdd.before(function () {
common = new Common(this.remote);
settingsPage = new SettingsPage(this.remote);
remote = this.remote;

return scenarioManager.reload('emptyKibana')
.then(function () {
return settingsPage.navigateTo();
});
});

bdd.describe('index pattern creation', function indexPatternCreation() {
bdd.before(function () {
return settingsPage.createIndexPattern();
});

bdd.it('should allow setting advanced settings', function () {
return settingsPage.clickAdvancedTab()
.then(function () {
return settingsPage.setAdvancedSetting('dateFormat:tz', 'American/Phoenix');
// expect(patternName).to.be('logstash-*');
})
.catch(common.handleError(this));
});




});
});
};
});

0 comments on commit 9d1c770

Please sign in to comment.