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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
659e6f32
Commit
659e6f32
authored
Jan 29, 2018
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix labels specs
parent
0ef1a582
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
app/views/shared/_delete_label_modal.html.haml
app/views/shared/_delete_label_modal.html.haml
+2
-2
app/views/shared/_label.html.haml
app/views/shared/_label.html.haml
+1
-1
features/steps/project/issues/labels.rb
features/steps/project/issues/labels.rb
+3
-2
spec/features/projects/labels/update_prioritization_spec.rb
spec/features/projects/labels/update_prioritization_spec.rb
+1
-1
No files found.
app/views/shared/_delete_label_modal.html.haml
View file @
659e6f32
...
...
@@ -7,8 +7,8 @@
.modal-body
%p
%strong
#{
label
.
name
}
will be permanently deleted from
#{
label
.
group
.
name
}
. This cannot be undone.
%strong
=
label
.
name
%span
will be permanently deleted from
#{
label
.
is_a?
(
ProjectLabel
)?
label
.
project
.
name
:
label
.
group
.
name
}
. This cannot be undone.
.modal-footer
%a
{
href:
'#'
,
data:
{
dismiss:
'modal'
},
class:
'btn btn-default'
}
Cancel
...
...
app/views/shared/_label.html.haml
View file @
659e6f32
...
...
@@ -5,7 +5,7 @@
-
show_label_merge_requests_link
=
show_label_issuables_link?
(
label
,
:merge_requests
,
project:
@project
)
-
show_label_issues_link
=
show_label_issuables_link?
(
label
,
:issues
,
project:
@project
)
%li
{
id:
label_css_id
,
data:
{
id:
label
.
id
}
}
%li
.label-list-item
{
id:
label_css_id
,
data:
{
id:
label
.
id
}
}
=
render
"shared/label_row"
,
label:
label
.visible-xs.visible-sm-inline-block.dropdown
...
...
features/steps/project/issues/labels.rb
View file @
659e6f32
...
...
@@ -15,8 +15,9 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps
step
'I delete all labels'
do
page
.
within
'.labels'
do
page
.
all
(
'.remove-row'
).
each
do
accept_confirm
{
first
(
'.remove-row'
).
click
}
page
.
all
(
'.label-list-item'
).
each
do
first
(
'.remove-row'
).
click
first
(
:link
,
'Delete label'
).
click
end
end
end
...
...
spec/features/projects/labels/update_prioritization_spec.rb
View file @
659e6f32
...
...
@@ -99,7 +99,7 @@ feature 'Prioritize labels' do
expect
(
page
).
to
have_content
'wontfix'
# Sort labels
drag_to
(
selector:
'.
js-prioritized-labels
'
,
from_index:
1
,
to_index:
2
)
drag_to
(
selector:
'.
label-list-item
'
,
from_index:
1
,
to_index:
2
)
page
.
within
(
'.prioritized-labels'
)
do
expect
(
first
(
'li'
)).
to
have_content
(
'feature'
)
...
...
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