wait_for_ajax() will tell us what was cause of the fail.

* it might be useful to combine it with the xxx_in_flight so we use only one method. But I did not want to mess with it again.