Commit 2aac325b authored by Mark Florian's avatar Mark Florian

Merge branch '254221-mlunoe-convert-test-to-use-element-instead-of-html' into 'master'

Follow-up from "Fix missing VSA request parameters"

See merge request gitlab-org/gitlab!42833
parents ee6ae02b e7ffc9c6
// 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