Commit e7ffc9c6 authored by mlunoe's avatar mlunoe

Refactor(VSA): use element for test snapshot

parent 58f318e0
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`DurationChart renders the duration chart 1`] = `
"<div data-testid=\\"vsa-duration-chart\\" class=\\"gl-display-flex gl-flex-direction-column\\">
<h4 class=\\"gl-mt-0\\">Days to completion</h4>
<stagedropdownfilter-stub stages=\\"[object Object],[object Object],[object Object]\\" label=\\"stage dropdown\\" class=\\"gl-ml-auto\\"></stagedropdownfilter-stub>
<scatterplot-stub xaxistitle=\\"Date\\" yaxistitle=\\"Total days to completion\\" scatterdata=\\"2019-01-01,29,2019-01-01,2019-01-02,100,2019-01-02\\" medianlinedata=\\"\\" tooltipdateformat=\\"mmm d, yyyy\\"></scatterplot-stub>
</div>"
<div
class="gl-display-flex gl-flex-direction-column"
data-testid="vsa-duration-chart"
>
<h4
class="gl-mt-0"
>
Days to completion
</h4>
<stagedropdownfilter-stub
class="gl-ml-auto"
label="stage dropdown"
stages="[object Object],[object Object],[object Object]"
/>
<scatterplot-stub
medianlinedata=""
scatterdata="2019-01-01,29,2019-01-01,2019-01-02,100,2019-01-02"
tooltipdateformat="mmm d, yyyy"
xaxistitle="Date"
yaxistitle="Total days to completion"
/>
</div>
`;
......@@ -81,7 +81,7 @@ describe('DurationChart', () => {
});
it('renders the duration chart', () => {
expect(wrapper.html()).toMatchSnapshot();
expect(wrapper.element).toMatchSnapshot();
});
it('renders the scatter plot', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment