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
9af81a5a
Commit
9af81a5a
authored
7 years ago
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
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
29 deletions
+46
-29
features/dashboard/active_tab.feature
features/dashboard/active_tab.feature
+0
-24
features/steps/dashboard/active_tab.rb
features/steps/dashboard/active_tab.rb
+0
-5
spec/features/dashboard/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
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
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