mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-02-16 12:34:32 +00:00
desktop_update_graphical: explicitly check refresh on GNOME
OK, this is annoying. GNOME Software intentionally does *not* clear the 'download' or 'reboot and update' button when you hit the refresh button, it just leaves them sitting there while the refresh happens. So let's specifically require the 'refreshing' text to appear and go away before we try and click on download or apply. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
4dab8520b0
commit
546d7ec94c
@ -59,8 +59,23 @@ sub run {
|
||||
wait_still_screen 5, 90;
|
||||
# we always want to refresh to make sure we get the prepared update
|
||||
assert_and_click 'desktop_package_tool_update_refresh', timeout=>120;
|
||||
# wait a while to make sure the UI clears to a 'refreshing' state
|
||||
sleep 20;
|
||||
# for GNOME, the apply/download buttons remain visible for a long
|
||||
# time, annoyingly. So let's actually watch the 'refreshing' state
|
||||
# till it goes away
|
||||
if ($desktop eq 'gnome') {
|
||||
assert_screen 'desktop_package_tool_update_refreshing';
|
||||
# now wait for it to go away
|
||||
for my $n (1..30) {
|
||||
last unless (check_screen 'desktop_package_tool_update_refreshing', 6);
|
||||
}
|
||||
sleep 3;
|
||||
}
|
||||
else {
|
||||
# just wait a bit to make sure the UI clears to a 'refreshing'
|
||||
# state
|
||||
sleep 5;
|
||||
}
|
||||
|
||||
my $tags = ['desktop_package_tool_update_download', 'desktop_package_tool_update_apply'];
|
||||
# Apply updates, moving the mouse every two minutes to avoid the
|
||||
# idle screen blank kicking in. Depending on whether this is KDE
|
||||
|
Loading…
Reference in New Issue
Block a user