Rails-jQuery-Demo icon indicating copy to clipboard operation
Rails-jQuery-Demo copied to clipboard

fix remotipart specs for chrome

Open rweng opened this issue 12 years ago • 1 comments

Hi, when I change the driver to chrome, two specs fail. In the spec_helper:

Capybara.register_driver :selenium_chrome do |app|
  Capybara::Selenium::Driver.new(app, :browser => :chrome)
end
Capybara.javascript_driver = :selenium_chrome

results in

Failed examples:

rspec ./spec/features/comments_spec.rb:323 # comments only submits via remotipart when a file upload is present
rspec ./spec/features/comments_spec.rb:359 # comments Disables submit button while submitting with remotipart

Using OS X 10.8 and Chrome 28.

rweng avatar Jul 16 '13 07:07 rweng

Hmm, I'll try it. My initial guess is there may be some race condition in the spec itself (I had issues sometimes even with Firefox where specs would occasionally fail due to Capybara not waiting for ajax requests to finish before it went to the next line).

JangoSteve avatar Jul 16 '13 13:07 JangoSteve