From 8063672adda8cda6765a2c7691c403217985d1fc Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 26 Sep 2013 16:00:11 +0300 Subject: [PATCH] Add sleep in tests to prevent random failing when next test starts before ajax requests for old one in progress --- features/steps/project/project_issues.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/features/steps/project/project_issues.rb b/features/steps/project/project_issues.rb index 6c18177..70e5cdf 100644 --- a/features/steps/project/project_issues.rb +++ b/features/steps/project/project_issues.rb @@ -58,14 +58,17 @@ class ProjectIssues < Spinach::FeatureSteps Given 'I fill in issue search with "Release"' do fill_in 'issue_search', with: "Release" + sleep 0.05 end Given 'I fill in issue search with "Bug"' do fill_in 'issue_search', with: "Bug" + sleep 0.05 end And 'I fill in issue search with "0.3"' do fill_in 'issue_search', with: "0.3" + sleep 0.05 end And 'I fill in issue search with "Something"' do -- libgit2 0.21.2