1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-29 00:53:09 +00:00

Add KDE package refresh needle, tweak retry logic a bit

KDE update was still often failing on #1943943, so this tries a
bit harder to work around it. We add a 'refresh' needle for KDE,
and tweak the 'retry' logic to click it if we get to that point.
Note adding the needle also changes behaviour slightly - we may
click this needle if we see it on first entering the screen. So
either change may be helping. Either way, this does make the test
more reliable.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2021-03-30 12:27:34 -07:00
parent 57cd0cb3c6
commit 16ded56935
3 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,16 @@
{
"area": [
{
"height": 16,
"type": "match",
"xpos": 748,
"ypos": 226,
"width": 19
}
],
"properties": [],
"tags": [
"DESKTOP-kde",
"desktop_package_tool_update_refresh"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB

View File

@ -102,8 +102,9 @@ sub run {
assert_screen ['kde_offline_update_reboot', 'desktop_package_tool_update_apply']; assert_screen ['kde_offline_update_reboot', 'desktop_package_tool_update_apply'];
# break out if we reached the reboot button # break out if we reached the reboot button
last if (match_has_tag 'kde_offline_update_reboot'); last if (match_has_tag 'kde_offline_update_reboot');
# otherwise, click apply again and loop again # otherwise, try refresh and apply
click_lastmatch; assert_and_click 'desktop_package_tool_update_refresh';
assert_and_click 'desktop_package_tool_update_apply';
} }
assert_and_click 'kde_offline_update_reboot'; assert_and_click 'kde_offline_update_reboot';
boot_to_login_screen; boot_to_login_screen;