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
72dd8011
Commit
72dd8011
authored
Sep 27, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rewrite issues search test to prevent ajax requests running after test
parent
13e073e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
18 deletions
+15
-18
features/project/issues/issues.feature
features/project/issues/issues.feature
+5
-5
features/steps/project/project_issues.rb
features/steps/project/project_issues.rb
+10
-13
No files found.
features/project/issues/issues.feature
View file @
72dd8011
...
...
@@ -3,7 +3,7 @@ Feature: Project Issues
Given
I sign in as a user
And
I own project
"Shop"
And
project
"Shop"
have
"Release 0.4"
open issue
And
project
"Shop"
have
"Tweet
feature
"
open issue
And
project
"Shop"
have
"Tweet
control
"
open issue
And
project
"Shop"
have
"Release 0.3"
closed issue
And
I visit project
"Shop"
issues page
...
...
@@ -38,20 +38,20 @@ Feature: Project Issues
@javascript
Scenario
:
I
search issue
Given
I fill in issue search with
"Re
lease
"
Given
I fill in issue search with
"Re"
Then
I should see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet
feature
"
in issues
And
I should not see
"Tweet
control
"
in issues
@javascript
Scenario
:
I
search issue that not exist
Given
I fill in issue search with
"Bu
g
"
Given
I fill in issue search with
"Bu"
Then
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
@javascript
Scenario
:
I
search all issues
Given
I click link
"All"
And
I fill in issue search with
"
0
.3"
And
I fill in issue search with
".3"
Then
I should see
"Release 0.3"
in issues
And
I should not see
"Release 0.4"
in issues
features/steps/project/project_issues.rb
View file @
72dd8011
...
...
@@ -12,8 +12,8 @@ class ProjectIssues < Spinach::FeatureSteps
page
.
should_not
have_content
"Release 0.3"
end
And
'I should not see "Tweet
feature
" in issues'
do
page
.
should_not
have_content
"Tweet
feature
"
And
'I should not see "Tweet
control
" in issues'
do
page
.
should_not
have_content
"Tweet
control
"
end
Given
'I click link "Closed"'
do
...
...
@@ -60,19 +60,16 @@ class ProjectIssues < Spinach::FeatureSteps
page
.
should
have_content
issue
.
project
.
name
end
Given
'I fill in issue search with "Release"'
do
fill_in
'issue_search'
,
with:
"Release"
sleep
0.05
Given
'I fill in issue search with "Re"'
do
fill_in
'issue_search'
,
with:
"Re"
end
Given
'I fill in issue search with "Bug"'
do
fill_in
'issue_search'
,
with:
"Bug"
sleep
0.05
Given
'I fill in issue search with "Bu"'
do
fill_in
'issue_search'
,
with:
"Bu"
end
And
'I fill in issue search with "0.3"'
do
fill_in
'issue_search'
,
with:
"0.3"
sleep
0.05
And
'I fill in issue search with ".3"'
do
fill_in
'issue_search'
,
with:
".3"
end
And
'I fill in issue search with "Something"'
do
...
...
@@ -127,10 +124,10 @@ class ProjectIssues < Spinach::FeatureSteps
author:
project
.
users
.
first
)
end
And
'project "Shop" have "Tweet
feature
" open issue'
do
And
'project "Shop" have "Tweet
control
" open issue'
do
project
=
Project
.
find_by_name
(
"Shop"
)
create
(
:issue
,
title:
"Tweet
feature
"
,
title:
"Tweet
control
"
,
project:
project
,
author:
project
.
users
.
first
)
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