Minor changes from review comments.

This commit is contained in:
LeeDr 2016-01-20 12:14:49 -06:00
parent 3da9d84fe7
commit c477ab40a8
2 changed files with 1 additions and 2 deletions

View file

@ -253,7 +253,6 @@ define(function (require) {
return common.tryForTime(20 * 1000, function tryingForTime() {
return discoverPage.getBarChartData()
.then(function compareData(paths) {
// console.log(paths);
// the largest bars are over 100 pixels high so this is less than 1% tolerance
var barHeightTolerance = 1;
var stringResults = '';
@ -267,6 +266,7 @@ define(function (require) {
};
if (hasFailure) {
common.log(stringResults);
common.log(paths);
}
for (var x = 0; x < expectedBarChartData.length; x++) {
expect(Math.abs(expectedBarChartData[x] - paths[x]) < barHeightTolerance).to.be.ok();

View file

@ -35,7 +35,6 @@ define(function (require) {
getChartTimespan: function getChartTimespan() {
return thisTime
.findByCssSelector('center.small > span:nth-child(1)')
// .findByCssSelector('center.small > span.ng-binding')
.getVisibleText();
},