From 5c7ea8d904c8fd216c7c9ec559bc43fa7ff93248 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 17 Dec 2015 19:38:42 +0100 Subject: [PATCH] Improved upload helper. --- test/browser_test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 467965007..5bb327a30 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -19,7 +19,6 @@ class TestCase < Test::Unit::TestCase browser_profile['general.useragent.locale'] = 'en-US' elsif browser == 'chrome' browser_profile = Selenium::WebDriver::Chrome::Profile.new - browser_profile['intl.accept_languages'] = 'en' end browser_profile @@ -896,6 +895,7 @@ class TestCase < Test::Unit::TestCase params[:files].each {|file| instance.find_elements({ css: params[:css] })[0].send_keys "#{Rails.root}/#{file}" } + sleep 2 * params[:files].count end =begin