As I develop my Rails application, I've decided to incorporate a combination of Test Driven Development and Behavioral Driven Development into my process.
The challenge arises as my app utilizes the MochaUI web application user interface framework, which is based on Mootools.
After completing unit tests, I encountered difficulties when testing the UI portion, particularly with content loaded via javascript, in iframes, or through ajax.
One test included:
And I should see "Some text loaded into an iframe with javascript"
Naturally, this test failed. Being new to TDD and BDD, I'm unsure where to start in resolving this issue. Any guidance or solutions would be greatly appreciated so I can have peace of mind at night!
Thank you!