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:
parent
2e56facb68
commit
7953fb91d1
23
needles/kde/auth_required-kde-20190530.json
Normal file
23
needles/kde/auth_required-kde-20190530.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/auth_required-kde-20190530.png
Normal file
BIN
needles/kde/auth_required-kde-20190530.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 567 KiB |
@ -13,6 +13,21 @@ sub run {
|
|||||||
prepare_test_packages;
|
prepare_test_packages;
|
||||||
# get back to the desktop
|
# get back to the desktop
|
||||||
desktop_vt;
|
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
|
# run the updater
|
||||||
if ($desktop eq 'kde') {
|
if ($desktop eq 'kde') {
|
||||||
# if the permanent pop-up notification appeared, get rid of
|
# if the permanent pop-up notification appeared, get rid of
|
||||||
@ -25,19 +40,6 @@ sub run {
|
|||||||
assert_and_click 'desktop_expand_systray';
|
assert_and_click 'desktop_expand_systray';
|
||||||
}
|
}
|
||||||
else {
|
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
|
# this launches GNOME Software on GNOME, dunno for any other
|
||||||
# desktop yet
|
# desktop yet
|
||||||
sleep 3;
|
sleep 3;
|
||||||
|
Loading…
Reference in New Issue
Block a user