Fix screenshots Data Table and Tile Map.
This commit is contained in:
parent
24fa2d41f9
commit
21e996bd88
1 changed files with 9 additions and 6 deletions
|
@ -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', function pageHeader() {
|
bdd.it('should save and load, 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 vizName1 = 'Visualization ' + testSubName;
|
var vizName1 = 'Visualization ' + testSubName;
|
||||||
|
@ -107,10 +107,17 @@ define(function (require) {
|
||||||
.then(function waitForVisualization() {
|
.then(function waitForVisualization() {
|
||||||
return visualizePage.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));
|
.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';
|
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;
|
||||||
|
@ -133,10 +140,6 @@ define(function (require) {
|
||||||
expect(data.trim().split('\n')).to.eql(expectedTableData);
|
expect(data.trim().split('\n')).to.eql(expectedTableData);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then(function takeScreenshot() {
|
|
||||||
common.debug('Take screenshot');
|
|
||||||
common.saveScreenshot('./screenshot-' + testSubName + '.png');
|
|
||||||
})
|
|
||||||
.catch(common.handleError(this));
|
.catch(common.handleError(this));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue