Skip to content

Commit

Permalink
Fix screenshots Data Table and Tile Map.
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeDr committed Jan 19, 2016
1 parent b9d626a commit b6f6792
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
17 changes: 10 additions & 7 deletions test/functional/apps/visualize/_tile_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ define(function (require) {

bdd.describe('tile map chart', function indexPatternCreation() {

bdd.it('should save and load', function pageHeader() {
bdd.it('should save and load, take screenshot', function pageHeader() {
var testSubName = 'TileMap';
common.debug('Start of test' + testSubName + 'Visualization');
var vizName1 = 'Visualization ' + testSubName;
Expand All @@ -104,13 +104,17 @@ define(function (require) {
.then(function () {
return visualizePage.loadSavedVisualization(vizName1);
})
.then(function waitForVisualization() {
return visualizePage.waitForVisualization();
.then(function sleep() {
return common.sleep(4000);
})
.then(function takeScreenshot() {
common.debug('Take screenshot');
common.saveScreenshot('./screenshot-' + testSubName + '.png');
})
.catch(common.handleError(this));
});

bdd.it('should show correct tile map data, take screenshot', function pageHeader() {
bdd.it('should show correct tile map data', function pageHeader() {
var testSubName = 'TileMap';
common.debug('Start of test' + testSubName + 'Visualization');
// var remote = this.remote;
Expand All @@ -133,9 +137,8 @@ define(function (require) {
expect(data.trim().split('\n')).to.eql(expectedTableData);
});
})
.then(function takeScreenshot() {
common.debug('Take screenshot');
common.saveScreenshot('./screenshot-' + testSubName + '.png');
.then(function () {
return visualizePage.collapseChart();
})
.catch(common.handleError(this));
});
Expand Down
6 changes: 3 additions & 3 deletions test/intern.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ define(function (require) {
}],
tunnelOptions: serverConfig.servers.webdriver,
functionalSuites: [
'test/functional/status_page/index',
'test/functional/apps/settings/index',
'test/functional/apps/discover/index',
// 'test/functional/status_page/index',
// 'test/functional/apps/settings/index',
// 'test/functional/apps/discover/index',
'test/functional/apps/visualize/index'
],
excludeInstrumentation: /(fixtures|node_modules)\//,
Expand Down
Empty file removed test/output/.empty
Empty file.

0 comments on commit b6f6792

Please sign in to comment.