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
d0d918c7
Commit
d0d918c7
authored
Aug 15, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
layout-nav test check fix
parent
669fb299
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
features/steps/shared/active_tab.rb
features/steps/shared/active_tab.rb
+4
-4
No files found.
features/steps/shared/active_tab.rb
View file @
d0d918c7
...
...
@@ -7,11 +7,11 @@ module SharedActiveTab
end
def
ensure_active_main_tab
(
content
)
expect
(
find
(
'.
layout-nav
li.active'
)).
to
have_content
(
content
)
expect
(
find
(
'.
sidebar-top-level-items >
li.active'
)).
to
have_content
(
content
)
end
def
ensure_active_sub_tab
(
content
)
expect
(
find
(
'.s
ub-nav
li.active'
)).
to
have_content
(
content
)
expect
(
find
(
'.s
idebar-sub-level-items >
li.active'
)).
to
have_content
(
content
)
end
def
ensure_active_sub_nav
(
content
)
...
...
@@ -19,11 +19,11 @@ module SharedActiveTab
end
step
'no other main tabs should be active'
do
expect
(
page
).
to
have_selector
(
'.
layout-nav .nav-link
s > li.active'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.
sidebar-top-level-item
s > li.active'
,
count:
1
)
end
step
'no other sub tabs should be active'
do
expect
(
page
).
to
have_selector
(
'.s
ub-nav
li.active'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.s
idebar-sub-level-items >
li.active'
,
count:
1
)
end
step
'no other sub navs should be active'
do
...
...
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