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
6bfdb481
Commit
6bfdb481
authored
Aug 12, 2021
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure we aggregate failures and freeze time
parent
45f5f340
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
spec/features/cycle_analytics_spec.rb
spec/features/cycle_analytics_spec.rb
+16
-10
No files found.
spec/features/cycle_analytics_spec.rb
View file @
6bfdb481
...
...
@@ -27,11 +27,13 @@ RSpec.describe 'Value Stream Analytics', :js do
wait_for_requests
end
it
'shows pipeline summary'
do
expect
(
new_issues_counter
).
to
have_content
(
'-'
)
expect
(
commits_counter
).
to
have_content
(
'-'
)
expect
(
deploys_counter
).
to
have_content
(
'-'
)
expect
(
deployment_frequency_counter
).
to
have_content
(
'-'
)
it
'displays metrics'
do
aggregate_failures
'with relevant values'
do
expect
(
new_issues_counter
).
to
have_content
(
'-'
)
expect
(
commits_counter
).
to
have_content
(
'-'
)
expect
(
deploys_counter
).
to
have_content
(
'-'
)
expect
(
deployment_frequency_counter
).
to
have_content
(
'-'
)
end
end
it
'shows active stage with empty message'
do
...
...
@@ -61,11 +63,15 @@ RSpec.describe 'Value Stream Analytics', :js do
visit
project_cycle_analytics_path
(
project
)
end
it
'shows pipeline summary'
do
expect
(
new_issue_counter
).
to
have_content
(
'1'
)
expect
(
commits_counter
).
to
have_content
(
'-'
)
expect
(
deploys_counter
).
to
have_content
(
'-'
)
expect
(
deployment_frequency_counter
).
to
have_content
(
'-'
)
it
'displays metrics'
do
metrics_tiles
=
page
.
find
(
metrics_selector
)
aggregate_failures
'with relevant values'
do
expect
(
metrics_tiles
).
to
have_content
(
'Commit'
)
expect
(
metrics_tiles
).
to
have_content
(
'Deploy'
)
expect
(
metrics_tiles
).
to
have_content
(
'Deployment Frequency'
)
expect
(
metrics_tiles
).
to
have_content
(
'New Issue'
)
end
end
it
'shows data on each stage'
,
:sidekiq_might_not_need_inline
do
...
...
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