Revert "Fix screenshots Data Table and Tile Map."

This reverts commit b6f67920aa.
This commit is contained in:
LeeDr 2016-01-19 10:39:51 -06:00
parent b6f67920aa
commit 24fa2d41f9
3 changed files with 10 additions and 13 deletions

View file

@ -87,7 +87,7 @@ define(function (require) {
bdd.describe('tile map chart', function indexPatternCreation() { bdd.describe('tile map chart', function indexPatternCreation() {
bdd.it('should save and load, take screenshot', function pageHeader() { bdd.it('should save and load', function pageHeader() {
var testSubName = 'TileMap'; var testSubName = 'TileMap';
common.debug('Start of test' + testSubName + 'Visualization'); common.debug('Start of test' + testSubName + 'Visualization');
var vizName1 = 'Visualization ' + testSubName; var vizName1 = 'Visualization ' + testSubName;
@ -104,17 +104,13 @@ define(function (require) {
.then(function () { .then(function () {
return visualizePage.loadSavedVisualization(vizName1); return visualizePage.loadSavedVisualization(vizName1);
}) })
.then(function sleep() { .then(function waitForVisualization() {
return common.sleep(4000); return visualizePage.waitForVisualization();
})
.then(function takeScreenshot() {
common.debug('Take screenshot');
common.saveScreenshot('./screenshot-' + testSubName + '.png');
}) })
.catch(common.handleError(this)); .catch(common.handleError(this));
}); });
bdd.it('should show correct tile map data', function pageHeader() { bdd.it('should show correct tile map data, take screenshot', function pageHeader() {
var testSubName = 'TileMap'; var testSubName = 'TileMap';
common.debug('Start of test' + testSubName + 'Visualization'); common.debug('Start of test' + testSubName + 'Visualization');
// var remote = this.remote; // var remote = this.remote;
@ -137,8 +133,9 @@ define(function (require) {
expect(data.trim().split('\n')).to.eql(expectedTableData); expect(data.trim().split('\n')).to.eql(expectedTableData);
}); });
}) })
.then(function () { .then(function takeScreenshot() {
return visualizePage.collapseChart(); common.debug('Take screenshot');
common.saveScreenshot('./screenshot-' + testSubName + '.png');
}) })
.catch(common.handleError(this)); .catch(common.handleError(this));
}); });

View file

@ -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)\//,

0
test/output/.empty Normal file
View file