Improve async loading bar test
Improve async loading bar test

The waitFor helper is allows us to wait for what we are actually testing
instead of a time which sometimes blocks the rendering and causes the
test to be flaky.

dartajax/frontend,dartajax/frontend,jrjohnson/frontend,djvoa12/frontend,jrjohnson/frontend,djvoa12/frontend,thecoolestguy/frontend,thecoolestguy/frontend,ilios/frontend,ilios/frontend