1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-23 14:33:08 +00:00

COPR / tag tests: handle GNOME "download unsigned" prompt

When using a side repo for testing a COPR or a side tag, there
may be unsigned packages. We set gpgcheck=0 to make dnf okay
with this, but gnome-software still shows a warning. Let's
click through it so the test can complete.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-06-11 14:38:18 -07:00
parent 304699bc6f
commit 206ffc2a7e
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 469,
"ypos": 247,
"width": 89,
"height": 22,
"type": "match"
},
{
"xpos": 580,
"ypos": 550,
"width": 71,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"desktop_package_tool_update_download_unsigned"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -117,6 +117,11 @@ sub run {
# for apply (only)
wait_screen_change { click_lastmatch; };
$n -= 1 if ($n > 1);
if (get_var("TAG") || get_var("COPR")) {
# we might get a 'download unsigned software' prompt
# https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2246
click_lastmatch if (check_screen "desktop_package_tool_update_download_unsigned", 30);
}
$tags = ['desktop_package_tool_update_apply'];
next;
}
@ -133,6 +138,11 @@ sub run {
# handle reboot confirm screen which pops up when user is
# logged in (but don't fail if it doesn't as we're not testing
# that)
if (get_var("TAG") || get_var("COPR")) {
# we might get a 'download unsigned software' prompt
# https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2246
click_lastmatch if (check_screen "desktop_package_tool_update_download_unsigned", 5);
}
if (check_screen 'gnome_reboot_confirm', 15) {
send_key 'tab';
send_key 'ret';