PullMonkey Blog

03 Mar

Capybara does not trigger JS change event with celertiy driver


I've never had so much to write about ... these last few days with cucumber and culerity have been great ...
Just a couple days ago, I was using cucumber and culerity to test some select box interaction and none of my tests were passing but everything I did manually worked as expected.
After tons of digging through the various gems, I found out that only a click event is actually being triggered, no change event.
So this is what I came up with for the step definition -

See improvement?, let me know.


Filed under: Uncategorized


One Response to “Capybara does not trigger JS change event with celertiy driver”

  1. By Ægir on Sep 7, 2011 | Reply

    Thakns for this tip.

    I just wrapped it into a Helper
    Now I can just do

    fill_in(’name’, :with => ‘The new value’)
    trigger_change(’.name’)

    https://gist.github.com/1200330

Sorry, comments for this entry are closed at this time.