Cucumber-rails fails to execute javascript

Hi all,

I am working on a rails app that uses javascript to advance through the various steps in a form. I decided then to use cucumber-rails to do some feature testing but when I run the specs it doesn’t execute any javascript. I first used poltergeist and lastly moved on to selenium-webdriver.

The javascript is done in vanilla javascript.

I already added the @javascript tag to the specific scenarios but nothing seems to solve the issue. I have read cucumber book but it didn’t helped either.

Does anyone know where I check next/or know some possible solution for this type of issue?

Thanks.

Hi guys,

found out why this was happening…the javascript files were not being loaded in the test environment.

Thanks.