Rails Feature tests failing after Yosemite upgrade

断了今生、忘了曾经 提交于 2019-12-11 09:32:23

问题


Immediately after upgrading my Mac to Yosemite, some feature tests started failing, specifically steps using the fill_in method. The following step definition fails on the first fill_in.

def sign_in
  visit '/users/sign_in'
  fill_in "Email", :with => @visitor[:email]
  fill_in "Password", :with => @visitor[:password]
  click_button "Log in"
end

I get the following error;

Selenium::WebDriver::Error::JavascriptError: arguments[0] is undefined 

It was passing before the upgrade. Anyone else run into this?


回答1:


It turns out it was a Firefox update that broke things. I downgraded from 35.0 to 34.0.5 and the tests are passing now. See this post Docker + Rspec + Capybara - arguments[0] is undefined

Here is a link to a selenium bug report on the issue. https://code.google.com/p/selenium/issues/detail?id=8390&sort=-id&colspec=ID%20Stars%20Type%20Status%20Priority%20Milestone%20Owner%20Summary



来源:https://stackoverflow.com/questions/27956071/rails-feature-tests-failing-after-yosemite-upgrade

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!