QAART-391: Fix for the insert link test to wait for the input to finish