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
554e4341
Commit
554e4341
authored
Mar 19, 2022
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix task by type specs
Updates the shared data used in the charts spec and fixes the task by type specs
parent
f8a919bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
22 deletions
+28
-22
ee/spec/features/groups/analytics/cycle_analytics/charts_spec.rb
.../features/groups/analytics/cycle_analytics/charts_spec.rb
+28
-22
No files found.
ee/spec/features/groups/analytics/cycle_analytics/charts_spec.rb
View file @
554e4341
...
...
@@ -6,11 +6,16 @@ RSpec.describe 'Value stream analytics charts', :js do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:group
)
{
create
(
:group
,
name:
'CA-test-group'
)
}
let_it_be
(
:group2
)
{
create
(
:group
,
name:
'CA-bad-test-group'
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
group
,
group:
group
,
name:
'Cool fun project'
)
}
let_it_be
(
:group_label1
)
{
create
(
:group_label
,
group:
group
)
}
let_it_be
(
:group_label2
)
{
create
(
:group_label
,
group:
group
)
}
let_it_be
(
:label
)
{
create
(
:group_label
,
group:
group2
)
}
let_it_be
(
:group_with_value_stream
)
{
create
(
:group
,
name:
'CA-vsa-test-group'
)
}
let_it_be
(
:vsa_group_project
)
{
create
(
:project
,
:repository
,
namespace:
group_with_value_stream
,
group:
group_with_value_stream
)
}
let_it_be
(
:value_stream
)
{
create
(
:cycle_analytics_group_value_stream
,
group:
group_with_value_stream
,
name:
'First value stream'
)
}
let_it_be
(
:vsa_stages
)
do
[
create
(
:cycle_analytics_group_stage
,
group:
group_with_value_stream
,
name:
"Issue"
,
relative_position:
1
,
value_stream:
value_stream
),
create
(
:cycle_analytics_group_stage
,
group:
group_with_value_stream
,
name:
"Code"
,
relative_position:
2
,
value_stream:
value_stream
)
]
end
empty_state_selector
=
'[data-testid="vsa-empty-state"]'
...
...
@@ -26,6 +31,7 @@ RSpec.describe 'Value stream analytics charts', :js do
before_all
do
group
.
add_owner
(
user
)
group_with_value_stream
.
add_owner
(
user
)
end
before
do
...
...
@@ -162,8 +168,10 @@ RSpec.describe 'Value stream analytics charts', :js do
sign_in
(
user
)
end
context
'type_of_work_analytics enabled'
do
context
'use_vsa_aggregated_tables feature flag off'
do
let
(
:selected_group
)
{
group
}
let
(
:selected_project
)
{
project
}
before
do
stub_feature_flags
(
use_vsa_aggregated_tables:
false
)
end
...
...
@@ -181,13 +189,11 @@ RSpec.describe 'Value stream analytics charts', :js do
end
context
'with a value stream'
do
before
do
create
(
:cycle_analytics_group_value_stream
,
group:
group
,
name:
'First value stream'
)
end
let
(
:selected_group
)
{
group_with_value_stream
}
let
(
:selected_project
)
{
vsa_group_project
}
it_behaves_like
'has the tasks by type chart'
end
end
end
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