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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
eeebf7da
Commit
eeebf7da
authored
Aug 19, 2014
by
Porus Patell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing requested changes for 'search issues by description' tests
parent
6136dd5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
33 deletions
+32
-33
features/project/issues/issues.feature
features/project/issues/issues.feature
+14
-14
features/steps/project/issues.rb
features/steps/project/issues.rb
+18
-19
No files found.
features/project/issues/issues.feature
View file @
eeebf7da
...
@@ -64,30 +64,30 @@ Feature: Project Issues
...
@@ -64,30 +64,30 @@ Feature: Project Issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.4"
in issues
@javascript
@javascript
Scenario
:
Test to search project issues when the entered search string exactly matches an existing
issue description
Scenario
:
Search issues when search string exactly matches
issue description
Given project
"Shop" has issue "Bugfix1" with description
:
"Description
for
issue1"
Given project
'Shop' has issue 'Bugfix1' with description
:
'Description
for
issue1'
And
I fill in issue search with
"Description for issue1"
And
I fill in issue search with
'Description for issue1'
Then
I should see
"Bugfix1"
in issues
Then
I should see
'Bugfix1'
in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet control"
in issues
And
I should not see
"Tweet control"
in issues
@javascript
@javascript
Scenario
:
Test to search project issues when the entered search string partially matches an existing
issue description
Scenario
:
Search issues when search string partially matches
issue description
Given project
"Shop" has issue "Bugfix1" with description
:
"Description
for
issue1"
Given project
'Shop' has issue 'Bugfix1' with description
:
'Description
for
issue1'
And project
"Shop" has issue "Feature1" with description
:
"Feature
submitted
for
issue1"
And project
'Shop' has issue 'Feature1' with description
:
'Feature
submitted
for
issue1'
And
I fill in issue search with
"issue1"
And
I fill in issue search with
'issue1'
Then
I should see
"Feature1"
in issues
Then
I should see
'Feature1'
in issues
Then
I should see
"Bugfix1"
in issues
Then
I should see
'Bugfix1'
in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet control"
in issues
And
I should not see
"Tweet control"
in issues
@javascript
@javascript
Scenario
:
Test to search project when the entered search string matches no existing
issue description
Scenario
:
Search issues when search string matches no
issue description
Given project
"Shop" has issue "Bugfix1" with description
:
"Description
for
issue1"
Given project
'Shop' has issue 'Bugfix1' with description
:
'Description
for
issue1'
And
I fill in issue search with
"Rock and roll"
And
I fill in issue search with
'Rock and roll'
Then
I should not see
"Bugfix1"
in issues
Then
I should not see
'Bugfix1'
in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet control"
in issues
And
I should not see
"Tweet control"
in issues
...
...
features/steps/project/issues.rb
View file @
eeebf7da
...
@@ -188,38 +188,37 @@ class ProjectIssues < Spinach::FeatureSteps
...
@@ -188,38 +188,37 @@ class ProjectIssues < Spinach::FeatureSteps
page
.
should
have_content
(
"```
\n
Command [1]: /usr/local/bin/git , see [text](doc/text)
\n
```"
)
page
.
should
have_content
(
"```
\n
Command [1]: /usr/local/bin/git , see [text](doc/text)
\n
```"
)
end
end
step
'project
"Shop" has issue "Bugfix1" with description: "Description for issue1"
'
do
step
'project
\'Shop\' has issue \'Bugfix1\' with description: \'Description for issue1\'
'
do
project
=
Project
.
find_by
(
name:
"Shop"
)
project
=
Project
.
find_by
(
name:
'Shop'
)
issue
=
create
(
:issue
,
title:
"Bugfix1"
,
description:
"Description for issue1"
,
project:
project
)
issue
=
create
(
:issue
,
title:
'Bugfix1'
,
description:
'Description for issue1'
,
project:
project
)
end
end
step
'project
"Shop" has issue "Feature1" with description: "Feature submitted for issue1"
'
do
step
'project
\'Shop\' has issue \'Feature1\' with description: \'Feature submitted for issue1\'
'
do
project
=
Project
.
find_by
(
name:
"Shop"
)
project
=
Project
.
find_by
(
name:
'Shop'
)
issue
=
create
(
:issue
,
title:
"Feature1"
,
description:
"Feature submitted for issue1"
,
project:
project
)
issue
=
create
(
:issue
,
title:
'Feature1'
,
description:
'Feature submitted for issue1'
,
project:
project
)
end
end
step
'I fill in issue search with
"Description for issue1"
'
do
step
'I fill in issue search with
\'Description for issue1\'
'
do
fill_in
'issue_search'
,
with:
"Description for issue"
fill_in
'issue_search'
,
with:
'Description for issue'
end
end
step
'I fill in issue search with
"issue1"
'
do
step
'I fill in issue search with
\'issue1\'
'
do
fill_in
'issue_search'
,
with:
"issue1"
fill_in
'issue_search'
,
with:
'issue1'
end
end
step
'I fill in issue search with
"Rock and roll"
'
do
step
'I fill in issue search with
\'Rock and roll\'
'
do
fill_in
'issue_search'
,
with:
"Description for issue"
fill_in
'issue_search'
,
with:
'Description for issue'
end
end
step
'I should see
"Bugfix1"
in issues'
do
step
'I should see
\'Bugfix1\'
in issues'
do
page
.
should
have_content
"Bugfix1"
page
.
should
have_content
'Bugfix1'
end
end
step
'I should see
"Feature1"
in issues'
do
step
'I should see
\'Feature1\'
in issues'
do
page
.
should
have_content
"Feature1"
page
.
should
have_content
'Feature1'
end
end
step
'I should not see \'Bugfix1\' in issues'
do
step
'I should not see "Bugfix1" in issues'
do
page
.
should_not
have_content
'Bugfix1'
page
.
should_not
have_content
"Bugfix1"
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