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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
78e3f835
Commit
78e3f835
authored
May 22, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ee/spec/features/projects/active_tabs_spec.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
5f3604ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
48 deletions
+0
-48
ee/spec/features/projects/active_tabs_spec.rb
ee/spec/features/projects/active_tabs_spec.rb
+0
-48
No files found.
ee/spec/features/projects/active_tabs_spec.rb
deleted
100644 → 0
View file @
5f3604ca
require
'spec_helper'
describe
'Project active tab'
do
let
(
:user
)
{
create
:user
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
before
do
project
.
add_master
(
user
)
sign_in
(
user
)
end
def
click_tab
(
title
)
page
.
within
'.sidebar-top-level-items > .active'
do
click_link
(
title
)
end
end
shared_examples
'page has active tab'
do
|
title
|
it
"activates
#{
title
}
tab"
do
expect
(
page
).
to
have_selector
(
'.sidebar-top-level-items > li.active'
,
count:
1
)
expect
(
find
(
'.sidebar-top-level-items > li.active'
)).
to
have_content
(
title
)
end
end
shared_examples
'page has active sub tab'
do
|
title
|
it
"activates
#{
title
}
sub tab"
do
expect
(
page
).
to
have_selector
(
'.sidebar-sub-level-items > li.active:not(.fly-out-top-item)'
,
count:
1
)
expect
(
find
(
'.sidebar-sub-level-items > li.active:not(.fly-out-top-item)'
))
.
to
have_content
(
title
)
end
end
context
'on project Home'
do
before
do
visit
project_path
(
project
)
end
it_behaves_like
'page has active tab'
,
'Overview'
context
'on project Home/Activity'
do
before
do
click_tab
(
'Activity'
)
end
it_behaves_like
'page has active tab'
,
'Overview'
end
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