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.
I can use just the new code with value check in python and not in JS.