1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-08-23 15:45:44 +00:00

Show details if an error appears.

When Software complains about something, it shows a grey banner
in the lower part with a button to click (Details).
The update test has not utilized this anyhow, so if it happened,
we would not know what the error was.
This fix makes sure to click on the Details button when it
appears, revealing the reason behind it, which could help
us understand what happened.
This commit is contained in:
Lukáš Růžička 2025-07-08 11:42:06 +02:00 committed by adamwill
parent 7caedda0dd
commit f9c0433acb
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{
"properties": [],
"tags": [
"software_button_details"
],
"area": [
{
"xpos": 610,
"ypos": 711,
"width": 57,
"height": 20,
"type": "match",
"match": "90"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -96,6 +96,12 @@ sub run {
# https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2246 # https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2246
click_lastmatch if (check_screen "desktop_package_tool_update_download_unsigned", 30); click_lastmatch if (check_screen "desktop_package_tool_update_download_unsigned", 30);
} }
# If there is an issue and Software reports it, let us click
# "Details" to see what the problem was to make later
# troubleshooting easier.
if (check_screen("software_button_details", timeout => 30)) {
click_lastmatch();
}
$tags = ['desktop_package_tool_update_apply']; $tags = ['desktop_package_tool_update_apply'];
next; next;
} }