Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-26 20:05:55 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-26 20:05:55 +0400
commit12dd7d2a9ab3066085572e0a47425a0442dd07ab (patch)
tree9b872d058408409e3c3b548a4ad711a79dec98ee /features
parent8063672adda8cda6765a2c7691c403217985d1fc (diff)
Fix issues search test
Diffstat (limited to 'features')
-rw-r--r--features/project/issues/issues.feature2
-rw-r--r--features/steps/project/project_issues.rb12
2 files changed, 14 insertions, 0 deletions
diff --git a/features/project/issues/issues.feature b/features/project/issues/issues.feature
index a4415736df7..5db9e01068c 100644
--- a/features/project/issues/issues.feature
+++ b/features/project/issues/issues.feature
@@ -3,6 +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 "Release 0.3" closed issue
And I visit project "Shop" issues page
@@ -40,6 +41,7 @@ Feature: Project Issues
Given I fill in issue search with "Release"
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
@javascript
Scenario: I search issue that not exist
diff --git a/features/steps/project/project_issues.rb b/features/steps/project/project_issues.rb
index 70e5cdf4a94..70c9b3a3f2e 100644
--- a/features/steps/project/project_issues.rb
+++ b/features/steps/project/project_issues.rb
@@ -12,6 +12,10 @@ 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"
+ end
+
Given 'I click link "Closed"' do
click_link "Closed"
end
@@ -123,6 +127,14 @@ class ProjectIssues < Spinach::FeatureSteps
author: project.users.first)
end
+ And 'project "Shop" have "Tweet feature" open issue' do
+ project = Project.find_by_name("Shop")
+ create(:issue,
+ title: "Tweet feature",
+ project: project,
+ author: project.users.first)
+ end
+
And 'project "Shop" have "Release 0.3" closed issue' do
project = Project.find_by_name("Shop")
create(:closed_issue,