Fix transient failure from the bar_chart.vue component

This commit is contained in:
Jose Vargas 2018-10-19 10:09:09 -05:00
parent c316c80430
commit d32abeece3
No known key found for this signature in database
GPG Key ID: 01F49A6AE27697FB
2 changed files with 5 additions and 6 deletions

View File

@ -0,0 +1,5 @@
---
title: Fix transient spec error in the bar_chart component
merge_request: 22495
author:
type: fixed

View File

@ -71,12 +71,6 @@ describe('Bar chart component', () => {
expect(barChart.xAxisLocation).toEqual('translate(100, 250)');
});
it('Contains a total of 4 ticks across the y axis', () => {
const ticks = barChart.$el.querySelector('.y-axis').querySelectorAll('.tick').length;
expect(ticks).toEqual(4);
});
it('rotates the x axis labels a total of 90 degress (CCW)', () => {
const xAxisLabel = barChart.$el.querySelector('.x-axis').querySelectorAll('text')[0];