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
0f50c588
Commit
0f50c588
authored
Dec 16, 2020
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated selectors for custom vsa feature spec
Update gettext file and fix some minor linting issues
parent
488bf8d9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
23 deletions
+18
-23
ee/app/assets/javascripts/analytics/cycle_analytics/components/custom_stage_form.vue
...nalytics/cycle_analytics/components/custom_stage_form.vue
+0
-1
ee/spec/features/groups/analytics/cycle_analytics/customizable_cycle_analytics_spec.rb
...tics/cycle_analytics/customizable_cycle_analytics_spec.rb
+9
-10
locale/gitlab.pot
locale/gitlab.pot
+9
-12
No files found.
ee/app/assets/javascripts/analytics/cycle_analytics/components/custom_stage_form.vue
View file @
0f50c588
...
...
@@ -9,7 +9,6 @@ import {
GlSprintf
,
GlButton
,
}
from
'
@gitlab/ui
'
;
import
{
s__
}
from
'
~/locale
'
;
import
{
convertObjectPropsToSnakeCase
}
from
'
~/lib/utils/common_utils
'
;
import
CustomStageFormFields
from
'
./create_value_stream_form/custom_stage_fields.vue
'
;
import
{
validateFields
,
initializeFormData
}
from
'
./create_value_stream_form/utils
'
;
...
...
ee/spec/features/groups/analytics/cycle_analytics/customizable_cycle_analytics_spec.rb
View file @
0f50c588
...
...
@@ -32,7 +32,7 @@ RSpec.describe 'Customizable Group Value Stream Analytics', :js do
start_event_identifier
=
:merge_request_created
end_event_identifier
=
:merge_request_merged
start_label_event
=
:issue_label_added
stop
_label_event
=
:issue_label_removed
end
_label_event
=
:issue_label_removed
let
(
:add_stage_button
)
{
'.js-add-stage-button'
}
let
(
:params
)
{
{
name:
custom_stage_name
,
start_event_identifier:
start_event_identifier
,
end_event_identifier:
end_event_identifier
}
}
...
...
@@ -57,11 +57,11 @@ RSpec.describe 'Customizable Group Value Stream Analytics', :js do
end
def
select_dropdown_option
(
name
,
value
=
start_event_identifier
)
page
.
find
(
"
select[name='
#{
name
}
']
"
).
all
(
'option'
).
find
{
|
item
|
item
.
value
==
value
.
to_s
}.
select_option
page
.
find
(
"
[data-testid='
#{
name
}
'] select
"
).
all
(
'option'
).
find
{
|
item
|
item
.
value
==
value
.
to_s
}.
select_option
end
def
select_dropdown_option_by_value
(
name
,
value
,
elem
=
'option'
)
page
.
find
(
"
select[name='
#{
name
}
']
"
).
find
(
"
#{
elem
}
[value=
#{
value
}
]"
).
select_option
page
.
find
(
"
[data-testid='
#{
name
}
'] select
"
).
find
(
"
#{
elem
}
[value=
#{
value
}
]"
).
select_option
end
def
wait_for_labels
(
field
)
...
...
@@ -212,17 +212,16 @@ RSpec.describe 'Customizable Group Value Stream Analytics', :js do
before
do
fill_in
'custom-stage-name'
,
with:
custom_stage_name
select_dropdown_option
'custom-stage-start-event'
,
start_event_identifier
select_dropdown_option
'custom-stage-
stop
-event'
,
end_event_identifier
select_dropdown_option
'custom-stage-
end
-event'
,
end_event_identifier
end
it
'does not have label dropdowns'
do
expect
(
page
).
not_to
have_content
(
s_
(
'CustomCycleAnalytics|Start event label'
))
expect
(
page
).
not_to
have_content
(
s_
(
'CustomCycleAnalytics|
Stop
event label'
))
expect
(
page
).
not_to
have_content
(
s_
(
'CustomCycleAnalytics|
End
event label'
))
end
it
'submit button is disabled if a default name is used'
do
fill_in
'custom-stage-name'
,
with:
'issue'
click_button
(
s_
(
'CustomCycleAnalytics|Add stage'
))
expect
(
page
).
to
have_button
(
s_
(
'CustomCycleAnalytics|Add stage'
),
disabled:
true
)
end
...
...
@@ -240,7 +239,7 @@ RSpec.describe 'Customizable Group Value Stream Analytics', :js do
before
do
fill_in
'custom-stage-name'
,
with:
custom_stage_with_labels_name
select_dropdown_option_by_value
'custom-stage-start-event'
,
start_label_event
select_dropdown_option_by_value
'custom-stage-
stop-event'
,
stop
_label_event
select_dropdown_option_by_value
'custom-stage-
end-event'
,
end
_label_event
end
it
'submit button is disabled'
do
...
...
@@ -249,11 +248,11 @@ RSpec.describe 'Customizable Group Value Stream Analytics', :js do
context
'with labels available'
do
start_field
=
'custom-stage-start-event-label'
end_field
=
'custom-stage-
stop
-event-label'
end_field
=
'custom-stage-
end
-event-label'
it
'does not contain labels from outside the group'
do
wait_for_labels
(
start_field
)
menu
=
page
.
find
(
"[
name
=
#{
start_field
}
] .dropdown-menu"
)
menu
=
page
.
find
(
"[
data-testid
=
#{
start_field
}
] .dropdown-menu"
)
expect
(
menu
).
not_to
have_content
(
other_label
.
name
)
expect
(
menu
).
to
have_content
(
first_label
.
name
)
...
...
@@ -282,7 +281,7 @@ RSpec.describe 'Customizable Group Value Stream Analytics', :js do
let
(
:stage_save_button
)
{
'[data-testid="save-custom-stage"]'
}
let
(
:name_field
)
{
'custom-stage-name'
}
let
(
:start_event_field
)
{
'custom-stage-start-event'
}
let
(
:end_event_field
)
{
'custom-stage-
stop
-event'
}
let
(
:end_event_field
)
{
'custom-stage-
end
-event'
}
let
(
:updated_custom_stage_name
)
{
'Extra uber cool stage'
}
before
do
...
...
locale/gitlab.pot
View file @
0f50c588
...
...
@@ -2820,9 +2820,6 @@ msgstr ""
msgid "All changes are committed"
msgstr ""
msgid "All default stages are currently visible"
msgstr ""
msgid "All email addresses will be used to identify your commits."
msgstr ""
...
...
@@ -8330,6 +8327,12 @@ msgstr ""
msgid "CustomCycleAnalytics|Add stage"
msgstr ""
msgid "CustomCycleAnalytics|All default stages are currently visible"
msgstr ""
msgid "CustomCycleAnalytics|Default stages"
msgstr ""
msgid "CustomCycleAnalytics|Editing stage"
msgstr ""
...
...
@@ -8351,13 +8354,13 @@ msgstr ""
msgid "CustomCycleAnalytics|Please select a start event first"
msgstr ""
msgid "CustomCycleAnalytics|
Select end event
"
msgid "CustomCycleAnalytics|
Recover hidden stage
"
msgstr ""
msgid "CustomCycleAnalytics|Select
start
event"
msgid "CustomCycleAnalytics|Select
end
event"
msgstr ""
msgid "CustomCycleAnalytics|Select st
op
event"
msgid "CustomCycleAnalytics|Select st
art
event"
msgstr ""
msgid "CustomCycleAnalytics|Stage name already exists"
...
...
@@ -8372,9 +8375,6 @@ msgstr ""
msgid "CustomCycleAnalytics|Start event label"
msgstr ""
msgid "CustomCycleAnalytics|Stop event label"
msgstr ""
msgid "CustomCycleAnalytics|Update stage"
msgstr ""
...
...
@@ -8959,9 +8959,6 @@ msgstr ""
msgid "Default projects limit"
msgstr ""
msgid "Default stages"
msgstr ""
msgid "Default: Map a FogBugz account ID to a full name"
msgstr ""
...
...
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