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
b4c842b3
Commit
b4c842b3
authored
8 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CHANGELOG and test
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
c9a8f2a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
CHANGELOG
CHANGELOG
+1
-0
features/search.feature
features/search.feature
+22
-0
features/steps/search.rb
features/steps/search.rb
+9
-0
No files found.
CHANGELOG
View file @
b4c842b3
...
@@ -7,6 +7,7 @@ v 8.6.0 (unreleased)
...
@@ -7,6 +7,7 @@ v 8.6.0 (unreleased)
- Fix avatar stretching by providing a cropping feature (Johann Pardanaud)
- Fix avatar stretching by providing a cropping feature (Johann Pardanaud)
- Strip leading and trailing spaces in URL validator (evuez)
- Strip leading and trailing spaces in URL validator (evuez)
- Update documentation to reflect Guest role not being enforced on internal projects
- Update documentation to reflect Guest role not being enforced on internal projects
- Allow search for logged out users
v 8.5.2
v 8.5.2
- Fix sidebar overlapping content when screen width was below 1200px
- Fix sidebar overlapping content when screen width was below 1200px
...
...
This diff is collapsed.
Click to expand it.
features/search.feature
View file @
b4c842b3
...
@@ -65,3 +65,25 @@ Feature: Search
...
@@ -65,3 +65,25 @@ Feature: Search
And
I search for
"Wiki content"
And
I search for
"Wiki content"
And
I click
"Wiki"
link
And
I click
"Wiki"
link
Then
I should see
"test_wiki"
link in the search results
Then
I should see
"test_wiki"
link in the search results
Scenario
:
I
logout and should see project I am looking for
Given
project
"Shop"
is public
And
I logout
And
I search for
"Sho"
Then
I should see
"Shop"
project link
Scenario
:
I
logout and should see issues I am looking for
Given
project
"Shop"
is public
And
I logout
And
project has issues
When
I search for
"Foo"
And
I click
"Issues"
link
Then
I should see
"Foo"
link in the search results
And
I should not see
"Bar"
link in the search results
Scenario
:
I
logout and should see project code I am looking for
Given
project
"Shop"
is public
And
I logout
When
I visit project
"Shop"
page
And
I search for
"rspec"
on project page
Then
I should see code results for project
"Shop"
This diff is collapsed.
Click to expand it.
features/steps/search.rb
View file @
b4c842b3
...
@@ -18,6 +18,11 @@ class Spinach::Features::Search < Spinach::FeatureSteps
...
@@ -18,6 +18,11 @@ class Spinach::Features::Search < Spinach::FeatureSteps
click_button
"Search"
click_button
"Search"
end
end
step
'I search for "rspec" on project page'
do
fill_in
"search"
,
with:
"rspec"
click_button
"Go"
end
step
'I search for "Wiki content"'
do
step
'I search for "Wiki content"'
do
fill_in
"dashboard_search"
,
with:
"content"
fill_in
"dashboard_search"
,
with:
"content"
click_button
"Search"
click_button
"Search"
...
@@ -103,4 +108,8 @@ class Spinach::Features::Search < Spinach::FeatureSteps
...
@@ -103,4 +108,8 @@ class Spinach::Features::Search < Spinach::FeatureSteps
@wiki
=
::
ProjectWiki
.
new
(
project
,
current_user
)
@wiki
=
::
ProjectWiki
.
new
(
project
,
current_user
)
@wiki
.
create_page
(
"test_wiki"
,
"Some Wiki content"
,
:markdown
,
"first commit"
)
@wiki
.
create_page
(
"test_wiki"
,
"Some Wiki content"
,
:markdown
,
"first commit"
)
end
end
step
'project "Shop" is public'
do
project
.
update_attributes
(
visibility_level:
Project
::
PUBLIC
)
end
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