mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-18 09:08:29 +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:
parent
57cd0cb3c6
commit
16ded56935
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 16,
|
||||
"type": "match",
|
||||
"xpos": 748,
|
||||
"ypos": 226,
|
||||
"width": 19
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"DESKTOP-kde",
|
||||
"desktop_package_tool_update_refresh"
|
||||
]
|
||||
}
|
BIN
needles/kde/desktop_package_tool_update_refresh-kde-20210330.png
Normal file
BIN
needles/kde/desktop_package_tool_update_refresh-kde-20210330.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 229 KiB |
@ -102,8 +102,9 @@ sub run {
|
||||
assert_screen ['kde_offline_update_reboot', 'desktop_package_tool_update_apply'];
|
||||
# break out if we reached the reboot button
|
||||
last if (match_has_tag 'kde_offline_update_reboot');
|
||||
# otherwise, click apply again and loop again
|
||||
click_lastmatch;
|
||||
# otherwise, try refresh and apply
|
||||
assert_and_click 'desktop_package_tool_update_refresh';
|
||||
assert_and_click 'desktop_package_tool_update_apply';
|
||||
}
|
||||
assert_and_click 'kde_offline_update_reboot';
|
||||
boot_to_login_screen;
|
||||
|
Loading…
Reference in New Issue
Block a user