mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 05:53:09 +00:00
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:
parent
b40d222cc7
commit
d0699217a4
@ -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";
|
||||
|
36
needles/gnome/initial_setup_44-20230221.json
Normal file
36
needles/gnome/initial_setup_44-20230221.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/initial_setup_44-20230221.png
Normal file
BIN
needles/gnome/initial_setup_44-20230221.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Loading…
Reference in New Issue
Block a user