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
1f76f638
Commit
1f76f638
authored
May 11, 2021
by
Justin Boyson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor find -> findComponent
Realted to:
https://gitlab.com/gitlab-org/gitlab/-/issues/295679
parent
aacfc82c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
ee/spec/frontend/analytics/cycle_analytics/components/base_spec.js
...rontend/analytics/cycle_analytics/components/base_spec.js
+13
-13
No files found.
ee/spec/frontend/analytics/cycle_analytics/components/base_spec.js
View file @
1f76f638
...
...
@@ -158,39 +158,39 @@ describe('Value Stream Analytics component', () => {
}
const
displaysProjectsDropdownFilter
=
(
flag
)
=>
{
expect
(
wrapper
.
find
(
ProjectsDropdownFilter
).
exists
()).
toBe
(
flag
);
expect
(
wrapper
.
find
Component
(
ProjectsDropdownFilter
).
exists
()).
toBe
(
flag
);
};
const
displaysDateRangePicker
=
(
flag
)
=>
{
expect
(
wrapper
.
find
(
Daterange
).
exists
()).
toBe
(
flag
);
expect
(
wrapper
.
find
Component
(
Daterange
).
exists
()).
toBe
(
flag
);
};
const
displaysMetrics
=
(
flag
)
=>
{
expect
(
wrapper
.
find
(
Metrics
).
exists
()).
toBe
(
flag
);
expect
(
wrapper
.
find
Component
(
Metrics
).
exists
()).
toBe
(
flag
);
};
const
displaysStageTable
=
(
flag
)
=>
{
expect
(
wrapper
.
find
(
StageTableNew
).
exists
()).
toBe
(
flag
);
expect
(
wrapper
.
find
Component
(
StageTableNew
).
exists
()).
toBe
(
flag
);
};
const
displaysDurationChart
=
(
flag
)
=>
{
expect
(
wrapper
.
find
(
DurationChart
).
exists
()).
toBe
(
flag
);
expect
(
wrapper
.
find
Component
(
DurationChart
).
exists
()).
toBe
(
flag
);
};
const
displaysTypeOfWork
=
(
flag
)
=>
{
expect
(
wrapper
.
find
(
TypeOfWorkCharts
).
exists
()).
toBe
(
flag
);
expect
(
wrapper
.
find
Component
(
TypeOfWorkCharts
).
exists
()).
toBe
(
flag
);
};
const
displaysPathNavigation
=
(
flag
)
=>
{
expect
(
wrapper
.
find
(
PathNavigation
).
exists
()).
toBe
(
flag
);
expect
(
wrapper
.
find
Component
(
PathNavigation
).
exists
()).
toBe
(
flag
);
};
const
displaysFilterBar
=
(
flag
)
=>
{
expect
(
wrapper
.
find
(
FilterBar
).
exists
()).
toBe
(
flag
);
expect
(
wrapper
.
find
Component
(
FilterBar
).
exists
()).
toBe
(
flag
);
};
const
displaysValueStreamSelect
=
(
flag
)
=>
{
expect
(
wrapper
.
find
(
ValueStreamSelect
).
exists
()).
toBe
(
flag
);
expect
(
wrapper
.
find
Component
(
ValueStreamSelect
).
exists
()).
toBe
(
flag
);
};
describe
(
'
without a group
'
,
()
=>
{
...
...
@@ -207,7 +207,7 @@ describe('Value Stream Analytics component', () => {
});
it
(
'
displays an empty state
'
,
()
=>
{
const
emptyState
=
wrapper
.
find
(
GlEmptyState
);
const
emptyState
=
wrapper
.
find
Component
(
GlEmptyState
);
expect
(
emptyState
.
exists
()).
toBe
(
true
);
expect
(
emptyState
.
props
(
'
svgPath
'
)).
toBe
(
emptyStateSvgPath
);
...
...
@@ -255,7 +255,7 @@ describe('Value Stream Analytics component', () => {
});
it
(
'
renders the no access information
'
,
()
=>
{
const
emptyState
=
wrapper
.
find
(
GlEmptyState
);
const
emptyState
=
wrapper
.
find
Component
(
GlEmptyState
);
expect
(
emptyState
.
exists
()).
toBe
(
true
);
expect
(
emptyState
.
props
(
'
svgPath
'
)).
toBe
(
noAccessSvgPath
);
...
...
@@ -304,13 +304,13 @@ describe('Value Stream Analytics component', () => {
});
it
(
'
hides the empty state
'
,
()
=>
{
expect
(
wrapper
.
find
(
GlEmptyState
).
exists
()).
toBe
(
false
);
expect
(
wrapper
.
find
Component
(
GlEmptyState
).
exists
()).
toBe
(
false
);
});
it
(
'
displays the projects filter
'
,
()
=>
{
displaysProjectsDropdownFilter
(
true
);
expect
(
wrapper
.
find
(
ProjectsDropdownFilter
).
props
()).
toEqual
(
expect
(
wrapper
.
find
Component
(
ProjectsDropdownFilter
).
props
()).
toEqual
(
expect
.
objectContaining
({
queryParams
:
wrapper
.
vm
.
projectsQueryParams
,
multiSelect
:
wrapper
.
vm
.
$options
.
multiProjectSelect
,
...
...
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