diff --git a/ui/tests/integration/components/line-chart-test.js b/ui/tests/integration/components/line-chart-test.js index 50d524cce..9c01c85a1 100644 --- a/ui/tests/integration/components/line-chart-test.js +++ b/ui/tests/integration/components/line-chart-test.js @@ -100,4 +100,28 @@ module('Integration | Component | line chart', function(hooks) { await click('[data-test-annotation] button'); assert.ok(this.click.calledWith(annotations[0])); }); + + test('annotations will have staggered heights when too close to be positioned side-by-side', async function(assert) { + const annotations = [{ x: 2, type: 'info' }, { x: 2.4, type: 'error' }, { x: 9, type: 'info' }]; + this.setProperties({ + annotations, + data: [{ x: 1, y: 1 }, { x: 10, y: 10 }], + click: sinon.spy(), + }); + + await render(hbs` +