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
86151387
Commit
86151387
authored
Jan 31, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Dashboard shortcuts specs from Spinah to RSpec
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
c9203e25
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
28 deletions
+29
-28
features/dashboard/shortcuts.feature
features/dashboard/shortcuts.feature
+0
-21
features/steps/dashboard/shortcuts.rb
features/steps/dashboard/shortcuts.rb
+0
-7
spec/features/dashboard/shortcuts_spec.rb
spec/features/dashboard/shortcuts_spec.rb
+29
-0
No files found.
features/dashboard/shortcuts.feature
deleted
100644 → 0
View file @
c9203e25
@dashboard
Feature
:
Dashboard Shortcuts
Background
:
Given
I sign in as a user
And
I visit dashboard page
@javascript
Scenario
:
Navigate to projects tab
Given
I press
"g"
and
"p"
Then
the active main tab should be Projects
@javascript
Scenario
:
Navigate to issue tab
Given
I press
"g"
and
"i"
Then
the active main tab should be Issues
@javascript
Scenario
:
Navigate to merge requests tab
Given
I press
"g"
and
"m"
Then
the active main tab should be Merge Requests
features/steps/dashboard/shortcuts.rb
deleted
100644 → 0
View file @
c9203e25
class
Spinach::Features::DashboardShortcuts
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
SharedProject
include
SharedSidebarActiveTab
include
SharedShortcuts
end
spec/features/dashboard/shortcuts_spec.rb
0 → 100644
View file @
86151387
require
'spec_helper'
feature
'Dashboard shortcuts'
,
feature:
true
,
js:
true
do
before
do
login_as
:user
visit
dashboard_projects_path
end
scenario
'Navigate to tabs'
do
find
(
'body'
).
native
.
send_key
(
'g'
)
find
(
'body'
).
native
.
send_key
(
'p'
)
ensure_active_main_tab
(
'Projects'
)
find
(
'body'
).
native
.
send_key
(
'g'
)
find
(
'body'
).
native
.
send_key
(
'i'
)
ensure_active_main_tab
(
'Issues'
)
find
(
'body'
).
native
.
send_key
(
'g'
)
find
(
'body'
).
native
.
send_key
(
'm'
)
ensure_active_main_tab
(
'Merge Requests'
)
end
def
ensure_active_main_tab
(
content
)
expect
(
find
(
'.nav-sidebar li.active'
)).
to
have_content
(
content
)
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