Fix broken integTest.
We can't rely on isVisible() now since we fade out the dialog.
We now check to see if the dialog is dismissing.