Skip to content

Commit

Permalink
Fix screenshots Data Table and Tile Map. Add comments.
Browse files Browse the repository at this point in the history
Fixes #5932
  • Loading branch information
LeeDr committed Jan 19, 2016
1 parent 38578ad commit 55c46f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/apps/visualize/_area_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ define(function (require) {
.then(function () {
return visualizePage.waitForVisualization();
})
// We have to sleep sometime between loading the saved visTitle
// and trying to access the chart below with getXAxisLabels
// otherwise it hangs.
.then(function sleep() {
return common.sleep(2000);
})
Expand Down
1 change: 1 addition & 0 deletions test/functional/apps/visualize/_line_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ define(function (require) {
// it could also check the legend to verify the extensions
var expectedChartData = ['jpg 9,109', 'css 2,159', 'png 1,373', 'gif 918', 'php 445'];

// sleep a bit before trying to get the chart data
return common.sleep(3000)
.then(function () {
return visualizePage.getLineChartData()
Expand Down
1 change: 1 addition & 0 deletions test/functional/apps/visualize/_pie_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ define(function (require) {
.then(function waitForVisualization() {
return visualizePage.waitForVisualization();
})
// sleep a bit before trying to get the pie chart data below
.then(function sleep() {
return common.sleep(2000);
})
Expand Down
1 change: 1 addition & 0 deletions test/functional/apps/visualize/_tile_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ define(function (require) {
.then(function waitForVisualization() {
return visualizePage.waitForVisualization();
})
// sleep a bit before taking the screenshot or it won't show data
.then(function sleep() {
return common.sleep(4000);
})
Expand Down

0 comments on commit 55c46f3

Please sign in to comment.