mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
parent
0e46a7d155
commit
da327af5f5
2 changed files with 4 additions and 5 deletions
|
@ -157,7 +157,7 @@ export default function HeatmapChartFactory(Private) {
|
|||
val = Math.min(colorsNumber - 1, Math.floor(val * colorsNumber));
|
||||
}
|
||||
}
|
||||
return val;
|
||||
return val || -1;
|
||||
}
|
||||
|
||||
function label(d) {
|
||||
|
|
|
@ -70,10 +70,9 @@ export default function ({ getService, getPageObjects }) {
|
|||
});
|
||||
|
||||
it('should show correct chart, take screenshot', function () {
|
||||
const expectedChartValues = ['0 - 400', '0 - 400', '400 - 800', '1,200 - 1,600',
|
||||
'1,200 - 1,600', '400 - 800', '0 - 400', '0 - 400', '0 - 400', '0 - 400', '400 - 800',
|
||||
'1,200 - 1,600', '1,200 - 1,600', '400 - 800', '0 - 400', '0 - 400', '0 - 400', '0 - 400',
|
||||
'400 - 800', '1,200 - 1,600', '1,200 - 1,600', '400 - 800', '0 - 400', '0 - 400' ];
|
||||
const expectedChartValues = [null, null, '400 - 800', '1,200 - 1,600', '1,200 - 1,600', '400 - 800',
|
||||
null, null, null, null, '400 - 800', '1,200 - 1,600', '1,200 - 1,600', '400 - 800', null, null,
|
||||
null, null, '400 - 800', '1,200 - 1,600', '1,200 - 1,600', '400 - 800', null, null ];
|
||||
|
||||
// Most recent failure on Jenkins usually indicates the bar chart is still being drawn?
|
||||
// return arguments[0].getAttribute(arguments[1]);","args":[{"ELEMENT":"592"},"fill"]}] arguments[0].getAttribute is not a function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue