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
Kazuhiko Shiozaki
gitlab-ce
Commits
a4372ab6
Commit
a4372ab6
authored
Feb 04, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
parents
028b58a9
986c5b6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
features/search.feature
features/search.feature
+8
-8
features/steps/search.rb
features/steps/search.rb
+4
-4
No files found.
features/search.feature
View file @
a4372ab6
...
...
@@ -13,15 +13,15 @@ Feature: Search
And
project has issues
When
I search for
"Foo"
And
I click
"Issues"
link
Then
I should see
"Foo"
link
And
I should not see
"Bar"
link
Then
I should see
"Foo"
link
in the search results
And
I should not see
"Bar"
link
in the search results
Scenario
:
I
should see merge requests I am looking for
And
project has merge requests
When
I search for
"Foo"
When
I click
"Merge requests"
link
Then
I should see
"Foo"
link
And
I should not see
"Bar"
link
Then
I should see
"Foo"
link
in the search results
And
I should not see
"Bar"
link
in the search results
Scenario
:
I
should see project code I am looking for
When
I click project
"Shop"
link
...
...
@@ -33,14 +33,14 @@ Feature: Search
When
I click project
"Shop"
link
And
I search for
"Foo"
And
I click
"Issues"
link
Then
I should see
"Foo"
link
And
I should not see
"Bar"
link
Then
I should see
"Foo"
link
in the search results
And
I should not see
"Bar"
link
in the search results
Scenario
:
I
should see project merge requests
And
project has merge requests
When
I click project
"Shop"
link
And
I search for
"Foo"
And
I click
"Merge requests"
link
Then
I should see
"Foo"
link
And
I should not see
"Bar"
link
Then
I should see
"Foo"
link
in the search results
And
I should not see
"Bar"
link
in the search results
features/steps/search.rb
View file @
a4372ab6
...
...
@@ -59,11 +59,11 @@ class Spinach::Features::Search < Spinach::FeatureSteps
create
(
:merge_request
,
:simple
,
title:
"Bar"
,
source_project:
project
,
target_project:
project
)
end
step
'I should see "Foo" link'
do
page
.
should
have_link
"Foo"
step
'I should see "Foo" link
in the search results
'
do
find
(
:css
,
'.search-results'
).
should
have_link
'Foo'
end
step
'I should not see "Bar" link'
do
page
.
should_not
have_link
"Bar"
step
'I should not see "Bar" link
in the search results
'
do
find
(
:css
,
'.search-results'
).
should_not
have_link
'Bar'
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