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
7fd11208
Commit
7fd11208
authored
Oct 17, 2019
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix variable name and remove trailing whitespace
parent
1456c6a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
ee/spec/features/boards/sidebar_spec.rb
ee/spec/features/boards/sidebar_spec.rb
+9
-6
No files found.
ee/spec/features/boards/sidebar_spec.rb
View file @
7fd11208
...
...
@@ -254,13 +254,16 @@ describe 'Issue Boards', :js do
context
'scoped labels'
do
let!
(
:scoped_label_1
)
{
create
(
:label
,
project:
project
,
name:
'Scoped::Label1'
)
}
let!
(
:scoped_label_2
)
{
create
(
:label
,
project:
project
,
name:
'Scoped::Label2'
)
}
before
do
stub_licensed_features
(
scoped_labels:
true
)
visit
project_board_path
(
project
,
board
)
wait_for_requests
end
it
'removes existing scoped label'
do
click_card
(
card
)
click_card
(
card
1
)
page
.
within
(
'.labels'
)
do
click_link
'Edit'
...
...
@@ -281,9 +284,9 @@ describe 'Issue Boards', :js do
end
end
expect
(
card
).
to
have_selector
(
'.scoped-label-wrapper'
,
count:
1
)
expect
(
card
).
not_to
have_content
(
scoped_label_1
.
title
)
expect
(
card
).
to
have_content
(
scoped_label_2
.
title
)
expect
(
card
1
).
to
have_selector
(
'.scoped-label-wrapper'
,
count:
1
)
expect
(
card
1
).
not_to
have_content
(
scoped_label_1
.
title
)
expect
(
card
1
).
to
have_content
(
scoped_label_2
.
title
)
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