Topic: Testing a Rails app that uses a feature-rich javascript library for UI

I'm working on a rails app that uses the dhtmlx javascript library.  The app uses this library heavily for its UI.

Examples:
http://dhtmlx.com/docs/products/dhtmlxGrid/index.shtml
http://dhtmlx.com/docs/products/dhtmlxTree/index.shtml

I'm trying to figure out the best way to test this.  Specifically, creating integration tests that work end-to-end that can be used to describe features doing outside-in development.  I'd like to use something like capybara with poltergeist/phantomjs or some other javascript-friendly driver.

But I can't figure out how to simulate even the simplest stuff, like clicking on the "+" icon to exapand/collapse a tree, etc.

Anyone tested a rails app that tightly integrates something like this?

Figured a fresh pair of eyes would help.

Thanks

Kenton

Last edited by kenton (2012-10-31 14:07:54)