BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
9af81a5a
Commit
9af81a5a
authored
Jan 03, 2017
by
Semyon Pupkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move dashboard active tab spinach test to rspec
https://gitlab.com/gitlab-org/gitlab-ce/issues/23036
parent
5136e72c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
29 deletions
+46
-29
active_tab.feature
features/dashboard/active_tab.feature
+0
-24
active_tab.rb
features/steps/dashboard/active_tab.rb
+0
-5
active_tab_spec.rb
spec/features/dashboard/active_tab_spec.rb
+46
-0
No files found.
features/dashboard/active_tab.feature
deleted
100644 → 0
View file @
5136e72c
@dashboard
Feature
:
Dashboard Active Tab
Background
:
Given
I sign in as a user
Scenario
:
On Dashboard Home
Given
I visit dashboard page
Then
the active main tab should be Home
And
no other main tabs should be active
Scenario
:
On Dashboard Issues
Given
I visit dashboard issues page
Then
the active main tab should be Issues
And
no other main tabs should be active
Scenario
:
On Dashboard Merge Requests
Given
I visit dashboard merge requests page
Then
the active main tab should be Merge Requests
And
no other main tabs should be active
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/steps/dashboard/active_tab.rb
deleted
100644 → 0
View file @
5136e72c
class
Spinach
::
Features
::
DashboardActiveTab
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
SharedSidebarActiveTab
end
spec/features/dashboard/active_tab_spec.rb
0 → 100644
View file @
9af81a5a
require
'spec_helper'
RSpec
.
describe
'Dashboard Active Tab'
,
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
)
end
end
context
'on dashboard projects'
do
before
do
visit
dashboard_projects_path
end
it_behaves_like
'page has active tab'
,
'Projects'
end
context
'on dashboard issues'
do
before
do
visit
issues_dashboard_path
end
it_behaves_like
'page has active tab'
,
'Issues'
end
context
'on dashboard merge requests'
do
before
do
visit
merge_requests_dashboard_path
end
it_behaves_like
'page has active tab'
,
'Merge Requests'
end
context
'on dashboard groups'
do
before
do
visit
dashboard_groups_path
end
it_behaves_like
'page has active tab'
,
'Groups'
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