I have a file field that has opacity: 0
and is overlaping a fake button. Its a common css technic to fake a sort of \"Upload button\" that displays consistently acr
I ended up resolving it a different route.
execute_script()
was giving me a hard time (it would freeze test execution on FireFox), so this is what I did:
I already had an appropriate javascript file. I appended the following
<% if ENV["RAILS_ENV"] == "test" %>
$('#photos').show()
<% end %>
I also had to append .erb
to my javascript file for proper Rails asset handling.
And in my test file, I was already setting ENV["RAILS_ENV"] = "test"
This way I could just dumb down the UI for test, and yet maintain the look and feel for production.