From 2a157bbd4e539efaa0a96ec185d06fa4c1da0351 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 9 Jan 2023 11:45:03 -0800 Subject: [PATCH] Fix up the Ignore button clicking The dialog moves a bit. Signed-off-by: Adam Williamson --- tests/desktop_update_graphical.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/desktop_update_graphical.pm b/tests/desktop_update_graphical.pm index 792283c7..3ec6c6e2 100644 --- a/tests/desktop_update_graphical.pm +++ b/tests/desktop_update_graphical.pm @@ -40,7 +40,9 @@ sub run { # GNOME Software 44+ has a 3rd party source pop-up, get rid of it # if it shows up (but don't fail if it doesn't, we're not testing that) if ($desktop eq 'gnome' && check_screen 'gnome_software_ignore', 10) { - click_lastmatch; + wait_still_screen 3; + # match again as the dialog may have moved a bit + assert_and_click 'gnome_software_ignore'; } # go to the 'update' interface. We may be waiting some time at a # 'Software catalog is being loaded' screen.