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
e5b64f20
Commit
e5b64f20
authored
Jul 19, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ref switcher enter key tests
parent
896b9c1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
spec/features/projects/ref_switcher_spec.rb
spec/features/projects/ref_switcher_spec.rb
+29
-0
No files found.
spec/features/projects/ref_switcher_spec.rb
0 → 100644
View file @
e5b64f20
require
'rails_helper'
feature
'Ref switcher'
,
feature:
true
,
js:
true
do
include
WaitForAjax
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
before
do
project
.
team
<<
[
user
,
:master
]
login_as
(
user
)
visit
namespace_project_tree_path
(
project
.
namespace
,
project
,
'master'
)
end
it
'allow user to change ref by enter key'
do
click_button
'master'
wait_for_ajax
page
.
within
'.project-refs-form'
do
input
=
find
(
'input[type="search"]'
)
input
.
set
'expand'
input
.
native
.
send_keys
:down
input
.
native
.
send_keys
:down
input
.
native
.
send_keys
:enter
expect
(
page
).
to
have_content
'expand-collapse-files'
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