How to test JavaScripts without to delete the `test` database data? How to test JavaScripts without to delete the `test` database data? selenium selenium

How to test JavaScripts without to delete the `test` database data?


I ran into this same problem, and managed to fix it by changing the following line in ROOT_APP/features/support/env.rb

from

Cucumber::Rails::Database.javascript_strategy = :truncation

to

Cucumber::Rails::Database.javascript_strategy = :transaction

Hope this helps...