Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e7ffc9c6
Commit
e7ffc9c6
authored
Sep 21, 2020
by
mlunoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor(VSA): use element for test snapshot
parent
58f318e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
6 deletions
+25
-6
ee/spec/frontend/analytics/cycle_analytics/components/__snapshots__/duration_chart_spec.js.snap
...tics/components/__snapshots__/duration_chart_spec.js.snap
+24
-5
ee/spec/frontend/analytics/cycle_analytics/components/duration_chart_spec.js
...alytics/cycle_analytics/components/duration_chart_spec.js
+1
-1
No files found.
ee/spec/frontend/analytics/cycle_analytics/components/__snapshots__/duration_chart_spec.js.snap
View file @
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>
`;
ee/spec/frontend/analytics/cycle_analytics/components/duration_chart_spec.js
View file @
e7ffc9c6
...
...
@@ -81,7 +81,7 @@ describe('DurationChart', () => {
});
it
(
'
renders the duration chart
'
,
()
=>
{
expect
(
wrapper
.
html
()
).
toMatchSnapshot
();
expect
(
wrapper
.
element
).
toMatchSnapshot
();
});
it
(
'
renders the scatter plot
'
,
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment