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
Boxiang Sun
gitlab-ce
Commits
ca9033bd
Commit
ca9033bd
authored
May 10, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Find the nothing-here-block before asserting page content when on explore page of shortcuts_spec.rb
parent
9b03ed0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
spec/features/dashboard/shortcuts_spec.rb
spec/features/dashboard/shortcuts_spec.rb
+18
-15
No files found.
spec/features/dashboard/shortcuts_spec.rb
View file @
ca9033bd
require
'spec_helper'
require
'spec_helper'
feature
'Dashboard shortcuts'
,
feature:
true
,
js:
true
do
feature
'Dashboard shortcuts'
,
:feature
,
:js
do
context
'logged in'
do
context
'logged in'
do
before
do
before
do
login_as
:user
login_as
:user
...
@@ -8,21 +8,21 @@ feature 'Dashboard shortcuts', feature: true, js: true do
...
@@ -8,21 +8,21 @@ feature 'Dashboard shortcuts', feature: true, js: true do
end
end
scenario
'Navigate to tabs'
do
scenario
'Navigate to tabs'
do
find
(
'body'
).
native
.
send_keys
([
:shift
,
'P'
])
find
(
'body'
).
send_key
([
:shift
,
'I'
])
check_page_title
(
'Projects'
)
find
(
'body'
).
native
.
send_key
([
:shift
,
'I'
])
check_page_title
(
'Issues'
)
check_page_title
(
'Issues'
)
find
(
'body'
).
native
.
send_key
([
:shift
,
'M'
])
find
(
'body'
).
send_key
([
:shift
,
'M'
])
check_page_title
(
'Merge Requests'
)
check_page_title
(
'Merge Requests'
)
find
(
'body'
).
native
.
send_keys
([
:shift
,
'T'
])
find
(
'body'
).
send_keys
([
:shift
,
'T'
])
check_page_title
(
'Todos'
)
check_page_title
(
'Todos'
)
find
(
'body'
).
send_keys
([
:shift
,
'P'
])
check_page_title
(
'Projects'
)
end
end
end
end
...
@@ -32,17 +32,20 @@ feature 'Dashboard shortcuts', feature: true, js: true do
...
@@ -32,17 +32,20 @@ feature 'Dashboard shortcuts', feature: true, js: true do
end
end
scenario
'Navigate to tabs'
do
scenario
'Navigate to tabs'
do
find
(
'body'
).
native
.
send_keys
([
:shift
,
'P'
])
find
(
'body'
).
send_keys
([
:shift
,
'G'
])
expect
(
page
).
to
have_content
(
'No projects found'
)
find
(
'body'
).
native
.
send_keys
([
:shift
,
'G'
])
find
(
'.nothing-here-block'
)
expect
(
page
).
to
have_content
(
'No public groups'
)
expect
(
page
).
to
have_content
(
'No public groups'
)
find
(
'body'
).
native
.
send_keys
([
:shift
,
'S'
])
find
(
'body'
).
send_keys
([
:shift
,
'S'
])
find
(
'.nothing-here-block'
)
expect
(
page
).
to
have_selector
(
'.snippets-list-holder'
)
expect
(
page
).
to
have_selector
(
'.snippets-list-holder'
)
find
(
'body'
).
send_keys
([
:shift
,
'P'
])
find
(
'.nothing-here-block'
)
expect
(
page
).
to
have_content
(
'No projects found'
)
end
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