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
441948f4
Commit
441948f4
authored
Oct 28, 2016
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spinach tests
parent
4281daf3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
features/dashboard/active_tab.feature
features/dashboard/active_tab.feature
+3
-3
features/dashboard/dashboard.feature
features/dashboard/dashboard.feature
+0
-1
features/steps/shared/sidebar_active_tab.rb
features/steps/shared/sidebar_active_tab.rb
+5
-9
No files found.
features/dashboard/active_tab.feature
View file @
441948f4
...
...
@@ -18,7 +18,7 @@ Feature: Dashboard Active Tab
Then
the active main tab should be Merge Requests
And
no other main tabs should be active
Scenario
:
On Dashboard
Help
Given
I visit dashboard
help
page
Then
the active main tab should be
Help
Scenario
:
On Dashboard
Groups
Given
I visit dashboard
groups
page
Then
the active main tab should be
Groups
And
no other main tabs should be active
features/dashboard/dashboard.feature
View file @
441948f4
...
...
@@ -11,7 +11,6 @@ Feature: Dashboard
And
I visit dashboard page
Scenario
:
I
should see projects list
Then
I should see
"New Project"
link
Then
I should see
"Shop"
project link
Then
I should see
"Shop"
project CI status
...
...
features/steps/shared/sidebar_active_tab.rb
View file @
441948f4
module
SharedSidebarActiveTab
include
Spinach
::
DSL
step
'the active main tab should be Help'
do
ensure_active_main_tab
(
'Help'
)
end
step
'no other main tabs should be active'
do
expect
(
page
).
to
have_selector
(
'.nav-sidebar
>
li.active'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.nav-sidebar li.active'
,
count:
1
)
end
def
ensure_active_main_tab
(
content
)
...
...
@@ -17,6 +13,10 @@ module SharedSidebarActiveTab
ensure_active_main_tab
(
'Projects'
)
end
step
'the active main tab should be Groups'
do
ensure_active_main_tab
(
'Groups'
)
end
step
'the active main tab should be Projects'
do
ensure_active_main_tab
(
'Projects'
)
end
...
...
@@ -28,8 +28,4 @@ module SharedSidebarActiveTab
step
'the active main tab should be Merge Requests'
do
ensure_active_main_tab
(
'Merge Requests'
)
end
step
'the active main tab should be Help'
do
ensure_active_main_tab
(
'Help'
)
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