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
2fc55914
Commit
2fc55914
authored
Feb 13, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix active_tab and issuables_counter specs
parent
23035d90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
spec/features/dashboard/active_tab_spec.rb
spec/features/dashboard/active_tab_spec.rb
+4
-3
spec/features/dashboard/issuables_counter_spec.rb
spec/features/dashboard/issuables_counter_spec.rb
+2
-1
No files found.
spec/features/dashboard/active_tab_spec.rb
View file @
2fc55914
require
'spec_helper'
RSpec
.
describe
'Dashboard Active Tab'
,
feature:
true
do
RSpec
.
describe
'Dashboard Active Tab'
,
js:
true
,
feature:
true
do
before
do
login_as
:user
end
shared_examples
'page has active tab'
do
|
title
|
it
"
#{
title
}
tab"
do
expect
(
page
).
to
have_selector
(
'.nav-sidebar li.active'
,
count:
1
)
expect
(
find
(
'.nav-sidebar li.active'
)).
to
have_content
(
title
)
find
(
'.global-dropdown-toggle'
).
trigger
(
'click'
)
expect
(
page
).
to
have_selector
(
'.global-dropdown-menu li.active'
,
count:
1
)
expect
(
find
(
'.global-dropdown-menu li.active'
)).
to
have_content
(
title
)
end
end
...
...
spec/features/dashboard/issuables_counter_spec.rb
View file @
2fc55914
...
...
@@ -36,7 +36,8 @@ describe 'Navigation bar counter', feature: true, js: true, caching: true do
def
expect_counters
(
issuable_type
,
count
)
dashboard_count
=
find
(
'li.active span.badge'
)
nav_count
=
find
(
".dashboard-shortcuts-
#{
issuable_type
}
span.count"
)
find
(
'.global-dropdown-toggle'
).
click
nav_count
=
find
(
".dashboard-shortcuts-
#{
issuable_type
}
span.badge"
)
expect
(
nav_count
).
to
have_content
(
count
)
expect
(
dashboard_count
).
to
have_content
(
count
)
...
...
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