Handle g-i-s 44 requiring two tabs at 'set a password' screen

We still need to handle 43 only requiring one for now, and we
can't just make it release-dependent until 44 is stable for both
38 and Rawhide, so let's use a needle match temporarily. Only
44 has these eye/pencil icons on this screen.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-02-20 17:13:37 -08:00
parent b40d222cc7
commit d0699217a4
3 changed files with 42 additions and 0 deletions

View File

@ -867,12 +867,18 @@ 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"; };
type_very_safely $user_password;
send_key "tab";
# on GNOME 44+ we need a second tab here to reach the confirm box
send_key "tab" if ($extratab);
type_very_safely $user_password;
wait_screen_change { assert_and_click "next_button"; };
send_key "ret";

View File

@ -0,0 +1,36 @@
{
"area": [
{
"xpos": 717,
"ypos": 226,
"width": 22,
"height": 22,
"type": "match"
},
{
"xpos": 757,
"ypos": 228,
"width": 23,
"height": 20,
"type": "match"
},
{
"xpos": 718,
"ypos": 368,
"width": 22,
"height": 22,
"type": "match"
},
{
"xpos": 757,
"ypos": 371,
"width": 22,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"initial_setup_44"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB