[openqa-tests/sam/ci] gnome_welcome: Type slowly into the timezone location entry



commit 68eccbf50991a7c6199c26cf19855dc61a86c1de
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Fri Sep 23 11:38:02 2022 +0200

    gnome_welcome: Type slowly into the timezone location entry
    
    We are still seeing random shift key presses, which breaks
    the test. E.g. https://openqa.gnome.org/tests/152#step/gnome_welcome/6

 tests/gnome_welcome.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/tests/gnome_welcome.pm b/tests/gnome_welcome.pm
index 49513a4..9435b3d 100644
--- a/tests/gnome_welcome.pm
+++ b/tests/gnome_welcome.pm
@@ -2,6 +2,9 @@ use base 'basetest';
 use strict;
 use testapi;
 
+# Taken from https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/utils.pm#L110
+use constant SLOW_TYPING_SPEED => 13;
+
 sub run {
     my $self = shift;
     assert_and_click('gnome_firstboot_welcome', timeout => 600, button => 'left');
@@ -9,7 +12,7 @@ sub run {
     assert_and_click('gnome_firstboot_privacy', timeout => 10, button => 'left');
     assert_screen('gnome_firstboot_timezone_1', 30);
     send_key('tab');
-    type_string('London, East', wait_screen_change => 6);
+    type_string('London, East', wait_screen_change => 6, max_interval => SLOW_TYPING_SPEED);
     assert_and_click('gnome_firstboot_timezone_2', timeout => 20, button => 'left');
     assert_and_click('gnome_firstboot_timezone_3', timeout => 20, button => 'left');
     assert_and_click('gnome_firstboot_accounts', timeout => 10, button => 'left');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]