mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
fixing tests
This commit is contained in:
parent
dae92bc933
commit
8653ea112b
3 changed files with 6 additions and 5 deletions
|
@ -144,7 +144,7 @@ describe('Vislib Heatmap Chart Test Suite', function () {
|
|||
vis.destroy();
|
||||
generateVis({
|
||||
setColorRange: true,
|
||||
colorsRange: [{ from: 0, to: 200}, { from: 200, to: 400 }, { from: 400, to: 500 }, { from: 500, to: Infinity }]
|
||||
colorsRange: [{ from: 0, to: 200 }, { from: 200, to: 400 }, { from: 400, to: 500 }, { from: 500, to: Infinity }]
|
||||
});
|
||||
const labels = vis.getLegendLabels();
|
||||
expect(labels[0]).to.be('0 - 200');
|
||||
|
|
|
@ -110,6 +110,7 @@ export default function DataFactory(Private) {
|
|||
}
|
||||
|
||||
shouldBeStacked(seriesConfig) {
|
||||
if (!seriesConfig) return false;
|
||||
const isHistogram = (seriesConfig.type === 'histogram');
|
||||
const isArea = (seriesConfig.type === 'area');
|
||||
const stacked = (seriesConfig.mode === 'stacked');
|
||||
|
|
|
@ -74,10 +74,10 @@ bdd.describe('visualize app', function describeIndexTests() {
|
|||
});
|
||||
|
||||
bdd.it('should show correct chart, take screenshot', function () {
|
||||
const expectedChartValues = ['0 - 400', '0 - 400', '400 - 800', '800 - 1200', '800 - 1200', '400 - 800',
|
||||
'0 - 400', '0 - 400', '0 - 400', '0 - 400', '400 - 800', '800 - 1200', '800 - 1200', '400 - 800',
|
||||
'0 - 400', '0 - 400', '0 - 400', '0 - 400', '400 - 800', '800 - 1200', '800 - 1200', '400 - 800',
|
||||
'0 - 400', '0 - 400'];
|
||||
const expectedChartValues = ['0 - 400', '0 - 400', '400 - 800', '1200 - 1600',
|
||||
'1200 - 1600', '400 - 800', '0 - 400', '0 - 400', '0 - 400', '0 - 400', '400 - 800',
|
||||
'1200 - 1600', '1200 - 1600', '400 - 800', '0 - 400', '0 - 400', '0 - 400', '0 - 400',
|
||||
'400 - 800', '1200 - 1600', '1200 - 1600', '400 - 800', '0 - 400', '0 - 400' ];
|
||||
|
||||
// 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