Rails Page Js Works In Real Browser / Manual Testing But Not In Phantomjs & Selenium Specs
In one of my Rails projects, I'm working on an interface to do CRUD operations on a resource (Commands) fully via AJAX (ie. no page reload needed). So there's a link to add a Comma
Solution 1:
Update: as @Artjom B suggested, I upgraded to PhantomJS 2.0.0. It appears that this partially fixed the problem: running the specs now properly sends the AJAX request to the server, but it appears that the success function still doesn't execute (ie. the page HTML doesn't change). So at least this gets me to the point where I can do 80% tests of these features... good enough to set aside for now.
Post a Comment for "Rails Page Js Works In Real Browser / Manual Testing But Not In Phantomjs & Selenium Specs"