Dialog windows tests

If text is selected, it is better to assume that the user didn't place the caret carefully enough.