Extend handle_welcome_screen to cover new KDE welcome tour

KDE has a welcome tour now, on F38 and Rawhide at least. Let's
"handle" it with extreme prejudice...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-02-21 18:16:13 -08:00
parent 6976e2e7c9
commit ddb3f44c57
4 changed files with 24 additions and 2 deletions

View File

@ -755,7 +755,8 @@ sub console_initial_setup {
}
sub handle_welcome_screen {
# handle the 'welcome' screen on GNOME. shared in a few places
# handle the 'welcome' screen on GNOME and KDE since F38. shared
# in a few places
if (check_screen "getting_started", 45) {
send_key "alt-f4";
# for GNOME 40, alt-f4 doesn't work

View File

@ -0,0 +1,16 @@
{
"area": [
{
"height": 32,
"ypos": 376,
"width": 25,
"type": "match",
"xpos": 493
}
],
"properties": [],
"tags": [
"DESKTOP-kde",
"getting_started"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 KiB

View File

@ -86,7 +86,12 @@ sub run {
# neither var is set, without needing an extra condition
my $sat = get_var("START_AFTER_TEST", "1");
my $dut = get_var("DEPLOY_UPLOAD_TEST", "2");
handle_welcome_screen if ($desktop eq 'gnome' && $sat ne $dut && !get_var("_WELCOME_DONE"));
my $relnum = get_release_number;
handle_welcome_screen if (
($desktop eq 'gnome' || $desktop eq 'kde' && $relnum > 37) &&
$sat ne $dut &&
!get_var("_WELCOME_DONE")
);
if (get_var("IMAGE_DEPLOY")) {
# if this was an image deployment, we also need to create
# root user now, for subsequent tests to work