parent
86ab222d4d
commit
40f8450d61
4 changed files with 6 additions and 0 deletions
|
@ -115,6 +115,9 @@ define(function (require) {
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return visualizePage.waitForVisualization();
|
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() {
|
.then(function sleep() {
|
||||||
return common.sleep(2000);
|
return common.sleep(2000);
|
||||||
})
|
})
|
||||||
|
|
|
@ -119,6 +119,7 @@ define(function (require) {
|
||||||
// it could also check the legend to verify the extensions
|
// 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'];
|
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)
|
return common.sleep(3000)
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return visualizePage.getLineChartData()
|
return visualizePage.getLineChartData()
|
||||||
|
|
|
@ -114,6 +114,7 @@ define(function (require) {
|
||||||
.then(function waitForVisualization() {
|
.then(function waitForVisualization() {
|
||||||
return visualizePage.waitForVisualization();
|
return visualizePage.waitForVisualization();
|
||||||
})
|
})
|
||||||
|
// sleep a bit before trying to get the pie chart data below
|
||||||
.then(function sleep() {
|
.then(function sleep() {
|
||||||
return common.sleep(2000);
|
return common.sleep(2000);
|
||||||
})
|
})
|
||||||
|
|
|
@ -107,6 +107,7 @@ define(function (require) {
|
||||||
.then(function waitForVisualization() {
|
.then(function waitForVisualization() {
|
||||||
return visualizePage.waitForVisualization();
|
return visualizePage.waitForVisualization();
|
||||||
})
|
})
|
||||||
|
// sleep a bit before taking the screenshot or it won't show data
|
||||||
.then(function sleep() {
|
.then(function sleep() {
|
||||||
return common.sleep(4000);
|
return common.sleep(4000);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue