Correctly waiting to record only the final page when tesing flows