1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-10 17:24:20 +00:00

Fix KDE update test with KDE 6.2

The behavior after we click 'Restart to Install Updates Now'
button has changed in KDE 6.2. The default choice is no longer
'Install Updates and Restart' (even though that's what the button
says), and there is no timer. So if we don't click anything, the
confirm overlay just stays open forever.

This makes us click on the appropriate confirmation button if we
see it. We can also use this to make the test run a bit faster on
other releases, I guess.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-09-16 12:16:26 -07:00
parent 5309466098
commit 381a79f06f
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 185,
"ypos": 556,
"width": 93,
"height": 60,
"type": "match"
}
],
"properties": [],
"tags": [
"DESKTOP-kde",
"kde_offline_update_reboot_confirm"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

View File

@ -128,6 +128,10 @@ sub run {
}
elsif ($desktop eq 'kde') {
assert_and_click 'kde_offline_update_reboot';
# this makes it faster when the confirm screen has a timeout,
# and avoids the test failing if it doesn't:
# https://invent.kde.org/plasma/discover/-/merge_requests/899
click_lastmatch if (check_screen 'kde_offline_update_reboot_confirm', 10);
boot_to_login_screen;
}
# back to console to verify updates