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
Léo-Paul Géneau
gitlab-ce
Commits
8dc55ff3
Commit
8dc55ff3
authored
Nov 06, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add feature spec to assert no linked filter inputs
parent
906b3b4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
spec/features/merge_requests/create_new_mr_spec.rb
spec/features/merge_requests/create_new_mr_spec.rb
+22
-0
No files found.
spec/features/merge_requests/create_new_mr_spec.rb
View file @
8dc55ff3
...
...
@@ -67,6 +67,28 @@ feature 'Create New Merge Request', :js do
expect
(
page
).
to
have_content
'git checkout -b orphaned-branch origin/orphaned-branch'
end
it
'allows filtering multiple dropdowns'
do
visit
project_new_merge_request_path
(
project
)
first
(
'.js-source-branch'
).
click
input
=
find
(
'.dropdown-source-branch .dropdown-input-field'
)
input
.
click
input
.
send_keys
(
'orphaned-branch'
)
find
(
'.dropdown-source-branch .dropdown-content li'
,
match: :first
)
source_items
=
all
(
'.dropdown-source-branch .dropdown-content li'
)
expect
(
source_items
.
count
).
to
eq
(
1
)
first
(
'.js-target-branch'
).
click
find
(
'.dropdown-target-branch .dropdown-content li'
,
match: :first
)
target_items
=
all
(
'.dropdown-target-branch .dropdown-content li'
)
expect
(
target_items
.
count
).
to
be
>
1
end
context
'when target project cannot be viewed by the current user'
do
it
'does not leak the private project name & namespace'
do
private_project
=
create
(
:project
,
:private
,
:repository
)
...
...
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