GuiTestUtils.runAfterEvents waits until task completes.