Improved upload helper.

This commit is contained in:
Martin Edenhofer 2015-12-17 19:38:42 +01:00
parent 23bb04566d
commit 5c7ea8d904

View file

@ -19,7 +19,6 @@ class TestCase < Test::Unit::TestCase
browser_profile['general.useragent.locale'] = 'en-US' browser_profile['general.useragent.locale'] = 'en-US'
elsif browser == 'chrome' elsif browser == 'chrome'
browser_profile = Selenium::WebDriver::Chrome::Profile.new browser_profile = Selenium::WebDriver::Chrome::Profile.new
browser_profile['intl.accept_languages'] = 'en' browser_profile['intl.accept_languages'] = 'en'
end end
browser_profile browser_profile
@ -896,6 +895,7 @@ class TestCase < Test::Unit::TestCase
params[:files].each {|file| params[:files].each {|file|
instance.find_elements({ css: params[:css] })[0].send_keys "#{Rails.root}/#{file}" instance.find_elements({ css: params[:css] })[0].send_keys "#{Rails.root}/#{file}"
} }
sleep 2 * params[:files].count
end end
=begin =begin