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
f8a919bc
Commit
f8a919bc
authored
Mar 19, 2022
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update duration chart specs
parent
e882734f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
ee/spec/features/groups/analytics/cycle_analytics/charts_spec.rb
.../features/groups/analytics/cycle_analytics/charts_spec.rb
+11
-13
No files found.
ee/spec/features/groups/analytics/cycle_analytics/charts_spec.rb
View file @
f8a919bc
...
...
@@ -64,15 +64,18 @@ RSpec.describe 'Value stream analytics charts', :js do
filters_selector
=
'.js-tasks-by-type-chart-filters'
before
do
mr_issue
=
create
(
:labeled_issue
,
created_at:
5
.
days
.
ago
,
project:
create
(
:project
,
group:
group
),
labels:
[
group_label2
])
create
(
:merge_request
,
iid:
mr_issue
.
id
,
created_at:
3
.
days
.
ago
,
source_project:
project
,
labels:
[
group_label1
,
group_label2
])
group_label1
=
create
(
:group_label
,
group:
selected_group
)
group_label2
=
create
(
:group_label
,
group:
selected_group
)
mr_issue
=
create
(
:labeled_issue
,
created_at:
5
.
days
.
ago
,
project:
create
(
:project
,
group:
selected_group
),
labels:
[
group_label2
])
create
(
:merge_request
,
iid:
mr_issue
.
id
,
created_at:
3
.
days
.
ago
,
source_project:
selected_project
,
labels:
[
group_label1
,
group_label2
])
3
.
times
do
|
i
|
create
(
:labeled_issue
,
created_at:
i
.
days
.
ago
,
project:
create
(
:project
,
group:
group
),
labels:
[
group_label1
])
create
(
:labeled_issue
,
created_at:
i
.
days
.
ago
,
project:
create
(
:project
,
group:
group
),
labels:
[
group_label2
])
create
(
:labeled_issue
,
created_at:
i
.
days
.
ago
,
project:
create
(
:project
,
group:
selected_
group
),
labels:
[
group_label1
])
create
(
:labeled_issue
,
created_at:
i
.
days
.
ago
,
project:
create
(
:project
,
group:
selected_
group
),
labels:
[
group_label2
])
end
select_group
(
group
)
select_group
(
selected_
group
)
end
it
'displays the chart'
do
...
...
@@ -109,7 +112,7 @@ RSpec.describe 'Value stream analytics charts', :js do
context
'no data available'
do
before
do
select_group
(
group
)
select_group
(
selected_
group
)
end
it
'shows the no data available message'
do
...
...
@@ -120,7 +123,7 @@ RSpec.describe 'Value stream analytics charts', :js do
end
end
context
'Duration chart'
do
describe
'Duration chart'
,
:js
do
context
'use_vsa_aggregated_tables feature flag off'
do
before
do
stub_feature_flags
(
use_vsa_aggregated_tables:
false
)
...
...
@@ -142,12 +145,7 @@ RSpec.describe 'Value stream analytics charts', :js do
context
'with a value stream'
do
before
do
create
(
:cycle_analytics_group_value_stream
,
group:
group
,
name:
'First value stream'
,
stages:
[
create
(
:cycle_analytics_group_stage
,
group:
group
,
name:
"Issue"
,
relative_position:
1
),
create
(
:cycle_analytics_group_stage
,
group:
group
,
name:
"Code"
,
relative_position:
2
)
])
select_group
(
group
)
select_group
(
group_with_value_stream
)
end
it_behaves_like
'has the duration chart'
...
...
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