From b6f67920aadf435c63cf1ede5b96ec38bc643b67 Mon Sep 17 00:00:00 2001 From: LeeDr Date: Tue, 19 Jan 2016 10:28:05 -0600 Subject: [PATCH] Fix screenshots Data Table and Tile Map. --- test/functional/apps/visualize/_tile_map.js | 17 ++++++++++------- test/intern.js | 6 +++--- test/output/.empty | 0 3 files changed, 13 insertions(+), 10 deletions(-) delete mode 100644 test/output/.empty diff --git a/test/functional/apps/visualize/_tile_map.js b/test/functional/apps/visualize/_tile_map.js index c913da29f724..13d81d603a4e 100644 --- a/test/functional/apps/visualize/_tile_map.js +++ b/test/functional/apps/visualize/_tile_map.js @@ -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; @@ -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; @@ -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)); }); diff --git a/test/intern.js b/test/intern.js index 67af1e763229..dafcea019f1c 100644 --- a/test/intern.js +++ b/test/intern.js @@ -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)\//, diff --git a/test/output/.empty b/test/output/.empty deleted file mode 100644 index e69de29bb2d1..000000000000