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
6a409dac
Commit
6a409dac
authored
Oct 14, 2021
by
Jonas Wälter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused feature specs
parent
e326ffd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
48 deletions
+2
-48
spec/features/explore/user_explores_projects_spec.rb
spec/features/explore/user_explores_projects_spec.rb
+2
-48
No files found.
spec/features/explore/user_explores_projects_spec.rb
View file @
6a409dac
...
...
@@ -5,9 +5,9 @@ require 'spec_helper'
RSpec
.
describe
'User explores projects'
do
context
'when some projects exist'
do
let_it_be
(
:archived_project
)
{
create
(
:project
,
:archived
)
}
let_it_be
(
:internal_project
)
{
create
(
:project
,
:internal
,
topic_list:
'topic1'
)
}
let_it_be
(
:internal_project
)
{
create
(
:project
,
:internal
)
}
let_it_be
(
:private_project
)
{
create
(
:project
,
:private
)
}
let_it_be
(
:public_project
)
{
create
(
:project
,
:public
,
topic_list:
'topic1'
)
}
let_it_be
(
:public_project
)
{
create
(
:project
,
:public
)
}
context
'when not signed in'
do
context
'when viewing public projects'
do
...
...
@@ -28,29 +28,6 @@ RSpec.describe 'User explores projects' do
expect
(
page
).
to
have_current_path
(
new_user_session_path
)
end
end
context
'when filtering for existing topic'
do
before
do
visit
(
explore_projects_path
(
topic:
'topic1'
))
end
it
'shows correct projects'
,
:aggregate_failures
do
expect
(
page
).
to
have_content
(
public_project
.
title
)
expect
(
page
).
not_to
have_content
(
internal_project
.
title
)
expect
(
page
).
not_to
have_content
(
private_project
.
title
)
expect
(
page
).
not_to
have_content
(
archived_project
.
title
)
end
end
context
'when filtering for non-existing topic'
do
before
do
visit
(
explore_projects_path
(
topic:
'topic2'
))
end
it
'shows correct empty state message'
do
expect
(
page
).
to
have_content
(
'Explore public groups to find projects to contribute to.'
)
end
end
end
context
'when signed in'
do
...
...
@@ -111,29 +88,6 @@ RSpec.describe 'User explores projects' do
include_examples
'empty search results'
include_examples
'minimum search length'
end
context
'when filtering for existing topic'
do
before
do
visit
(
explore_projects_path
(
topic:
'topic1'
))
end
it
'shows correct projects'
,
:aggregate_failures
do
expect
(
page
).
to
have_content
(
public_project
.
title
)
expect
(
page
).
to
have_content
(
internal_project
.
title
)
expect
(
page
).
not_to
have_content
(
private_project
.
title
)
expect
(
page
).
not_to
have_content
(
archived_project
.
title
)
end
end
context
'when filtering for non-existing topic'
do
before
do
visit
(
explore_projects_path
(
topic:
'topic2'
))
end
it
'shows correct empty state message'
do
expect
(
page
).
to
have_content
(
'Explore public groups to find projects to contribute to.'
)
end
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