Skip to content
Snippets Groups Projects
Commit b5f3ac5e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets Committed by Wes Gurney
Browse files

Fix issues search test

parent 79a2757d
No related branches found
No related tags found
1 merge request!4954Add support to configure webhook_timeout in gitlab.yaml
This commit is part of merge request !4954. Comments created here will be created in the context of that merge request.
Loading
Loading
@@ -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
 
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
@@ -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,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment