Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Feb 23, 2021
1 parent be34df1 commit 857e62a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { renderLegendItem } from '../../step_detail/waterfall/waterfall_chart_wr
import { render } from '../../../../../lib/helper/rtl_helpers';

import 'jest-canvas-mock';
import { waitFor } from '@testing-library/dom';

describe('waterfall', () => {
it('sets the correct height in case of full height', () => {
Expand Down Expand Up @@ -38,6 +39,8 @@ describe('waterfall', () => {

const chartWrapper = getByTestId('waterfallOuterContainer');

expect(chartWrapper).toHaveStyleRule('height', 'calc(100vh - 62px)');
waitFor(() => {
expect(chartWrapper).toHaveStyleRule('height', 'calc(100vh - 62px)');
});
});
});

0 comments on commit 857e62a

Please sign in to comment.