mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
test(graph): validates that percentage is shown when using stack and percentage
fixes #2379
This commit is contained in:
parent
ce2ae31950
commit
b99ea80b58
@ -215,6 +215,17 @@ define([
|
||||
});
|
||||
});
|
||||
|
||||
graphScenario('when stack and percent', function(ctx) {
|
||||
ctx.setup(function(scope) {
|
||||
scope.panel.percentage = true;
|
||||
scope.panel.stack = true;
|
||||
});
|
||||
|
||||
it('should show percentage', function() {
|
||||
var axis = ctx.plotOptions.yaxes[0];
|
||||
expect(axis.tickFormatter(100, axis)).to.be("100%");
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user