QUnit acceptance tests failing while loading


#1

My acceptance tests are failing because they do not wait for the page to be loaded. Instead, they prematurely capture the moment that the loading page appears, so any find() call will fail.

How can I avoid this and synchronize the test to wait until the page has been successfully loaded and rendered?