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
884c8e7f
Commit
884c8e7f
authored
Jun 10, 2020
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix feature flag specs
parent
d1daccdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
ee/spec/features/analytics/cycle_analytics/cycle_analytics_spec.rb
...eatures/analytics/cycle_analytics/cycle_analytics_spec.rb
+24
-20
No files found.
ee/spec/features/analytics/cycle_analytics/cycle_analytics_spec.rb
View file @
884c8e7f
...
...
@@ -154,34 +154,38 @@ RSpec.describe 'Group Value Stream Analytics', :js do
expect
(
page
).
to
have_selector
(
'.js-daterange-picker'
,
visible:
true
)
end
it
'
does not show
the path navigation'
do
expect
(
page
).
to
have_selector
(
path_nav_selector
,
visible:
false
)
it
'
shows
the path navigation'
do
expect
(
page
).
to
have_selector
(
path_nav_selector
)
end
it
'
does not show
the filter bar'
do
expect
(
page
).
not_to
have_selector
(
filter_bar_selector
)
it
'
shows
the filter bar'
do
expect
(
page
).
to
have_selector
(
filter_bar_selector
,
visible:
false
)
end
end
context
'with path navigation feature flag enabled'
do
before
do
stub_feature_flags
(
value_stream_analytics_path_navigation:
true
)
select_group
end
context
'with path navigation feature flag disabled'
do
before
do
stub_feature_flags
(
value_stream_analytics_path_navigation:
false
)
it
'shows the path navigation'
do
expect
(
page
).
to
have_selector
(
path_nav_selector
,
visible:
true
)
end
visit
analytics_cycle_analytics_path
select_group
end
context
'with filter bar feature flag enabled'
do
before
do
stub_feature_flags
(
value_stream_analytics_filter_bar:
true
)
select_group
end
it
'shows the path navigation'
do
expect
(
page
).
not_to
have_selector
(
path_nav_selector
)
end
end
it
'shows the filter bar'
do
expect
(
page
).
to
have_selector
(
filter_bar_selector
,
visible: :hidden
)
end
context
'with filter bar feature flag disabled'
do
before
do
stub_feature_flags
(
value_stream_analytics_filter_bar:
false
)
visit
analytics_cycle_analytics_path
select_group
end
it
'does not show the filter bar'
do
expect
(
page
).
not_to
have_selector
(
filter_bar_selector
)
end
end
...
...
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