abstract waitFor view logic and force nextTick