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

Try to handle spurious 'auth required' on KDE update test too

Sigh, now *this* is showing up in KDE too. Fun.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-05-30 17:52:51 -07:00
parent 2e56facb68
commit 7953fb91d1
3 changed files with 38 additions and 13 deletions

View File

@ -0,0 +1,23 @@
{
"area": [
{
"xpos": 257,
"ypos": 211,
"width": 64,
"height": 55,
"type": "match"
},
{
"xpos": 397,
"ypos": 382,
"width": 35,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"DESKTOP-kde",
"auth_required"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 KiB

View File

@ -13,6 +13,21 @@ sub run {
prepare_test_packages;
# get back to the desktop
desktop_vt;
# work around https://gitlab.gnome.org/GNOME/gnome-software/issues/582
# if it happens. As of 2019-05, seeing something similar on KDE too
if (check_screen "auth_required", 10) {
record_soft_failure "spurious 'auth required' - https://gitlab.gnome.org/GNOME/gnome-software/issues/582";
assert_and_click "auth_required" if ($desktop eq 'kde');
# bit sloppy but correct for both...
type_very_safely "weakpassword\n";
# as of 2019-04 when we hit this bug it seems to ask for
# auth *twice*, so handle that
sleep 3;
if (check_screen "auth_required", 1) {
type_very_safely "weakpassword\n";
}
}
# run the updater
if ($desktop eq 'kde') {
# if the permanent pop-up notification appeared, get rid of
@ -25,19 +40,6 @@ sub run {
assert_and_click 'desktop_expand_systray';
}
else {
# work around https://gitlab.gnome.org/GNOME/gnome-software/issues/582
# if it happens
if (check_screen "auth_required", 10) {
record_soft_failure "spurious 'auth required' - https://gitlab.gnome.org/GNOME/gnome-software/issues/582";
# bit sloppy but correct for both...
type_very_safely "weakpassword\n";
# as of 2019-04 when we hit this bug it seems to ask for
# auth *twice*, so handle that
sleep 3;
if (check_screen "auth_required", 1) {
type_very_safely "weakpassword\n";
}
}
# this launches GNOME Software on GNOME, dunno for any other
# desktop yet
sleep 3;