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
a5fafb49
Commit
a5fafb49
authored
Mar 10, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added feature tests to ensure milestone in filter can't be editted
parent
7e6026ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
spec/features/boards/board_with_milestone_spec.rb
spec/features/boards/board_with_milestone_spec.rb
+16
-0
No files found.
spec/features/boards/board_with_milestone_spec.rb
View file @
a5fafb49
...
...
@@ -66,6 +66,22 @@ describe 'Board with milestone', :feature, :js do
expect
(
find
(
'.tokens-container'
)).
not_to
have_content
(
milestone
.
title
)
expect
(
all
(
'.board'
)[
1
]).
to
have_selector
(
'.card'
,
count:
0
)
end
it
'does not allow milestone in filter to be editted'
do
find
(
'.filtered-search'
).
native
.
send_keys
(
:backspace
)
page
.
within
(
'.tokens-container'
)
do
expect
(
page
).
to
have_selector
(
'.value'
)
end
end
it
'does not render milestone in hint dropdown'
do
find
(
'.filtered-search'
).
click
page
.
within
(
'#js-dropdown-hint'
)
do
expect
(
page
).
not_to
have_button
(
'Milestone'
)
end
end
end
def
create_board_with_milestone
...
...
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