Sigh, do the are-we-44 check in the right place

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-02-20 17:29:13 -08:00
parent d0699217a4
commit 7ea4ed733c
1 changed files with 4 additions and 4 deletions

View File

@ -867,14 +867,14 @@ sub gnome_initial_setup {
send_key "ret";
if ($args{prelogin}) {
# create user
# temporarily (until the versions are stable) we need to check
# whether we're on 43 or 44 here
my $extratab = 0;
$extratab = 1 if (check_screen 'initial_setup_44', 5);
my $user_login = get_var("USER_LOGIN") || "test";
my $user_password = get_var("USER_PASSWORD") || "weakpassword";
type_very_safely $user_login;
wait_screen_change { assert_and_click "next_button"; };
# temporarily (until the versions are stable) we need to check
# whether we're on 43 or 44 here
my $extratab = 0;
$extratab = 1 if (check_screen 'initial_setup_44', 5);
type_very_safely $user_password;
send_key "tab";
# on GNOME 44+ we need a second tab here to reach the confirm box