Improved upload helper.
This commit is contained in:
parent
23bb04566d
commit
5c7ea8d904
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue