I tried to test what the documentation says about waitFor, but when I use a promise the callback won\'t run again even though it is rejected.
waitFor may