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
Jérome Perrin
gitlab-ce
Commits
b9af0305
Commit
b9af0305
authored
Apr 12, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for the "i" shortcut
parent
29734516
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
features/project/shortcuts.feature
features/project/shortcuts.feature
+5
-0
features/steps/project/project_shortcuts.rb
features/steps/project/project_shortcuts.rb
+4
-0
features/steps/shared/project.rb
features/steps/shared/project.rb
+4
-0
No files found.
features/project/shortcuts.feature
View file @
b9af0305
...
...
@@ -56,3 +56,8 @@ Feature: Project Shortcuts
Scenario
:
Navigate to project feed
Given
I press
"g"
and
"e"
Then
the active main tab should be Activity
@javascript
@focus
Scenario
:
Navigate to new Issue page
Given
I press
"i"
Then
I should see the new issue page
features/steps/project/project_shortcuts.rb
View file @
b9af0305
...
...
@@ -38,4 +38,8 @@ class Spinach::Features::ProjectShortcuts < Spinach::FeatureSteps
find
(
'body'
).
native
.
send_key
(
'g'
)
find
(
'body'
).
native
.
send_key
(
'e'
)
end
step
'I press "i"'
do
find
(
'body'
).
native
.
send_key
(
'i'
)
end
end
features/steps/shared/project.rb
View file @
b9af0305
...
...
@@ -102,6 +102,10 @@ module SharedProject
@project
||=
Project
.
first
end
step
'I should see the new issue page'
do
expect
(
page
).
to
have_content
(
'New Issue'
)
end
# ----------------------------------------
# Project permissions
# ----------------------------------------
...
...
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