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
f5bea9df
Commit
f5bea9df
authored
Apr 18, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tests
parent
262a3dd4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
app/assets/stylesheets/pages/search.scss
app/assets/stylesheets/pages/search.scss
+6
-2
features/search.feature
features/search.feature
+5
-0
features/steps/search.rb
features/steps/search.rb
+1
-0
No files found.
app/assets/stylesheets/pages/search.scss
View file @
f5bea9df
...
@@ -156,12 +156,15 @@
...
@@ -156,12 +156,15 @@
.search-holder
{
.search-holder
{
@media
(
min-width
:
$screen-sm-min
)
{
@media
(
min-width
:
$screen-sm-min
)
{
display
:
-
webkit-flex
;
display
:
-
webkit-flex
;
display
:
-
ms-flexbox
;
display
:
flex
;
display
:
flex
;
}
}
.search-field-holder
{
.search-field-holder
{
-webkit-flex
:
1
0
auto
;
-ms-flex
:
1
0
auto
;
flex
:
1
0
auto
;
position
:
relative
;
position
:
relative
;
width
:
100%
;
margin-right
:
0
;
margin-right
:
0
;
@media
(
min-width
:
$screen-sm-min
)
{
@media
(
min-width
:
$screen-sm-min
)
{
...
@@ -203,6 +206,7 @@
...
@@ -203,6 +206,7 @@
.dropdown-menu-toggle
{
.dropdown-menu-toggle
{
width
:
100%
;
width
:
100%
;
margin-top
:
5px
;
margin-top
:
5px
;
border-radius
:
$border-radius-base
;
@media
(
min-width
:
$screen-sm-min
)
{
@media
(
min-width
:
$screen-sm-min
)
{
width
:
160px
;
width
:
160px
;
...
...
features/search.feature
View file @
f5bea9df
...
@@ -30,11 +30,13 @@ Feature: Search
...
@@ -30,11 +30,13 @@ Feature: Search
Then
I should see
"Foo"
link in the search results
Then
I should see
"Foo"
link in the search results
And
I should not see
"Bar"
link in the search results
And
I should not see
"Bar"
link in the search results
@javascript
Scenario
:
I
should see project code I am looking for
Scenario
:
I
should see project code I am looking for
When
I click project
"Shop"
link
When
I click project
"Shop"
link
And
I search for
"rspec"
And
I search for
"rspec"
Then
I should see code results for project
"Shop"
Then
I should see code results for project
"Shop"
@javascript
Scenario
:
I
should see project issues
Scenario
:
I
should see project issues
And
project has issues
And
project has issues
When
I click project
"Shop"
link
When
I click project
"Shop"
link
...
@@ -43,6 +45,7 @@ Feature: Search
...
@@ -43,6 +45,7 @@ Feature: Search
Then
I should see
"Foo"
link in the search results
Then
I should see
"Foo"
link in the search results
And
I should not see
"Bar"
link in the search results
And
I should not see
"Bar"
link in the search results
@javascript
Scenario
:
I
should see project merge requests
Scenario
:
I
should see project merge requests
And
project has merge requests
And
project has merge requests
When
I click project
"Shop"
link
When
I click project
"Shop"
link
...
@@ -51,6 +54,7 @@ Feature: Search
...
@@ -51,6 +54,7 @@ Feature: Search
Then
I should see
"Foo"
link in the search results
Then
I should see
"Foo"
link in the search results
And
I should not see
"Bar"
link in the search results
And
I should not see
"Bar"
link in the search results
@javascript
Scenario
:
I
should see project milestones
Scenario
:
I
should see project milestones
And
project has milestones
And
project has milestones
When
I click project
"Shop"
link
When
I click project
"Shop"
link
...
@@ -59,6 +63,7 @@ Feature: Search
...
@@ -59,6 +63,7 @@ Feature: Search
Then
I should see
"Foo"
link in the search results
Then
I should see
"Foo"
link in the search results
And
I should not see
"Bar"
link in the search results
And
I should not see
"Bar"
link in the search results
@javascript
Scenario
:
I
should see Wiki blobs
Scenario
:
I
should see Wiki blobs
And
project has Wiki content
And
project has Wiki content
When
I click project
"Shop"
link
When
I click project
"Shop"
link
...
...
features/steps/search.rb
View file @
f5bea9df
...
@@ -35,6 +35,7 @@ class Spinach::Features::Search < Spinach::FeatureSteps
...
@@ -35,6 +35,7 @@ class Spinach::Features::Search < Spinach::FeatureSteps
end
end
step
'I click project "Shop" link'
do
step
'I click project "Shop" link'
do
click_button
'Project'
page
.
within
'.project-filter'
do
page
.
within
'.project-filter'
do
click_link
project
.
name_with_namespace
click_link
project
.
name_with_namespace
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