tansaku/LocalSupport — pull request #159 by johnnymo87 (2014-01-09 01:20:16+00:00)
Title: Toggle fix

* The fix: remove the `$(function() {...})` wrapper from around `$('#registerForm').collapse('hide')`
* For some reason, it never would release the buggy div from its initial hidden state while this was present
* The test: check that the desired div was invisible, visible, then invisible again (and the opposite for its partner)
* It turns out capybara drivers often are unable to detect invisibility, despite methods to contrary
* see: http://stackoverflow.com/a/15782921
* As an alternative, I check for height info in the `style` attribute of the appropriate tag
* Also, I have to sleep the step for a moment to give enough time for js to modify the DOM
* Miscellaneous: there were non-js tests claiming to test visibility elsewhere, and I removed them because they don't do anything ... everything they were looking for was automatically visible without js