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

rewrite issues search test to prevent ajax requests running after test

parent 69437092
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
@@ -3,7 +3,7 @@ Feature: Project Issues
Loading
@@ -3,7 +3,7 @@ Feature: Project Issues
Given I sign in as a user Given I sign in as a user
And I own project "Shop" And I own project "Shop"
And project "Shop" have "Release 0.4" open issue 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 project "Shop" have "Release 0.3" closed issue
And I visit project "Shop" issues page And I visit project "Shop" issues page
   
Loading
@@ -38,20 +38,20 @@ Feature: Project Issues
Loading
@@ -38,20 +38,20 @@ Feature: Project Issues
   
@javascript @javascript
Scenario: I search issue Scenario: I search issue
Given I fill in issue search with "Release" Given I fill in issue search with "Re"
Then I should see "Release 0.4" in issues Then I should 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 feature" in issues And I should not see "Tweet control" in issues
   
@javascript @javascript
Scenario: I search issue that not exist Scenario: I search issue that not exist
Given I fill in issue search with "Bug" Given I fill in issue search with "Bu"
Then I should not see "Release 0.4" in issues Then 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
   
@javascript @javascript
Scenario: I search all issues Scenario: I search all issues
Given I click link "All" 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 Then I should see "Release 0.3" in issues
And I should not see "Release 0.4" in issues And I should not see "Release 0.4" in issues
Loading
@@ -12,8 +12,8 @@ class ProjectIssues < Spinach::FeatureSteps
Loading
@@ -12,8 +12,8 @@ class ProjectIssues < Spinach::FeatureSteps
page.should_not have_content "Release 0.3" page.should_not have_content "Release 0.3"
end end
   
And 'I should not see "Tweet feature" in issues' do And 'I should not see "Tweet control" in issues' do
page.should_not have_content "Tweet feature" page.should_not have_content "Tweet control"
end end
   
Given 'I click link "Closed"' do Given 'I click link "Closed"' do
Loading
@@ -60,19 +60,16 @@ class ProjectIssues < Spinach::FeatureSteps
Loading
@@ -60,19 +60,16 @@ class ProjectIssues < Spinach::FeatureSteps
page.should have_content issue.project.name page.should have_content issue.project.name
end end
   
Given 'I fill in issue search with "Release"' do Given 'I fill in issue search with "Re"' do
fill_in 'issue_search', with: "Release" fill_in 'issue_search', with: "Re"
sleep 0.05
end end
   
Given 'I fill in issue search with "Bug"' do Given 'I fill in issue search with "Bu"' do
fill_in 'issue_search', with: "Bug" fill_in 'issue_search', with: "Bu"
sleep 0.05
end end
   
And 'I fill in issue search with "0.3"' do And 'I fill in issue search with ".3"' do
fill_in 'issue_search', with: "0.3" fill_in 'issue_search', with: ".3"
sleep 0.05
end end
   
And 'I fill in issue search with "Something"' do And 'I fill in issue search with "Something"' do
Loading
@@ -127,10 +124,10 @@ class ProjectIssues < Spinach::FeatureSteps
Loading
@@ -127,10 +124,10 @@ class ProjectIssues < Spinach::FeatureSteps
author: project.users.first) author: project.users.first)
end 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") project = Project.find_by_name("Shop")
create(:issue, create(:issue,
title: "Tweet feature", title: "Tweet control",
project: project, project: project,
author: project.users.first) author: project.users.first)
end end
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