Test suite: Make pasting into terminal more robust
I've seen a case where the command was not pasted correctly to the terminal. I couldn't find a way to paste it via Dogtail but we can at least check if we pasted what we expected to paste.
Closes #20269 (closed)