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.
What do you think? To me it just seems a little dangerous as the page state could change in the meantime.