Use lower similarity level for type_safely wait_still_screen

Just like all the others, to handle flashing cursors.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-07-25 14:57:00 -07:00
parent 0206324115
commit 85c74f214e

View File

@ -21,7 +21,9 @@ sub run_with_error_check {
sub type_safely {
my $string = shift;
type_string($string, wait_screen_change => 3, max_interval => 20);
wait_still_screen 2;
# similarity level 45 as there will commonly be a flashing
# cursor and the default level (47) is slightly too tight
wait_still_screen(stilltime=>2, similarity_level=>45);
}
# high-level 'type this string extremely safely and rather slow'