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

please remove empty spaces here and in the following lines