mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-28 16:43:09 +00:00
Drop similarity levels on type(_very)_safely, solidify_wallpaper
I noticed today that we're timing out all the time on these wait_still_screens in gnome-terminal, because it uses a big flashing cursor and the similarity between "cursor there" and "cursor not there" is less than 45 or 42 (it seems to be 38.x). So let's drop these levels to 38, hopefully that's not too low. There are probably more places where this is an issue, I'll change them as I notice them. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
522e004914
commit
7bf3bd8689
12
lib/utils.pm
12
lib/utils.pm
@ -47,9 +47,9 @@ sub type_safely {
|
|||||||
sub type_very_safely {
|
sub type_very_safely {
|
||||||
my $string = shift;
|
my $string = shift;
|
||||||
type_string($string, wait_screen_change => 1, max_interval => 1);
|
type_string($string, wait_screen_change => 1, max_interval => 1);
|
||||||
# similarity level 45 as there will commonly be a flashing
|
# similarity level 38 as there will commonly be a flashing
|
||||||
# cursor and the default level (47) is slightly too tight
|
# cursor and the default level (47) is too tight
|
||||||
wait_still_screen(stilltime=>5, similarity_level=>45);
|
wait_still_screen(stilltime=>5, similarity_level=>38);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub get_release_number {
|
sub get_release_number {
|
||||||
@ -1443,14 +1443,14 @@ sub solidify_wallpaper {
|
|||||||
# Start the terminal to set up backgrounds.
|
# Start the terminal to set up backgrounds.
|
||||||
menu_launch_type "gnome-terminal";
|
menu_launch_type "gnome-terminal";
|
||||||
# wait to be sure it's fully open
|
# wait to be sure it's fully open
|
||||||
wait_still_screen(stilltime=>5, similarity_level=>42);
|
wait_still_screen(stilltime=>5, similarity_level=>38);
|
||||||
# When the application opens, run command in it to set the background to black
|
# When the application opens, run command in it to set the background to black
|
||||||
type_very_safely "gsettings set org.gnome.desktop.background picture-uri ''";
|
type_very_safely "gsettings set org.gnome.desktop.background picture-uri ''";
|
||||||
send_key 'ret';
|
send_key 'ret';
|
||||||
wait_still_screen(stilltime=>2, similarity_level=>42);
|
wait_still_screen(stilltime=>2, similarity_level=>38);
|
||||||
type_very_safely "gsettings set org.gnome.desktop.background primary-color '#000000'";
|
type_very_safely "gsettings set org.gnome.desktop.background primary-color '#000000'";
|
||||||
send_key 'ret';
|
send_key 'ret';
|
||||||
wait_still_screen(stilltime=>2, similarity_level=>42);
|
wait_still_screen(stilltime=>2, similarity_level=>38);
|
||||||
quit_with_shortcut();
|
quit_with_shortcut();
|
||||||
# check that is has changed color
|
# check that is has changed color
|
||||||
assert_screen 'apps_settings_screen_black';
|
assert_screen 'apps_settings_screen_black';
|
||||||
|
Loading…
Reference in New Issue
Block a user